How to convert application/x-www-form-urlencoded to visual format?

how to convert the request body of grab package into visual reading?


Click webforms
clipboard.png


decode
clipboard.png


clipboard.png
xs.dznxznx


url to json


copy your complete url,. Using this method, you can directly convert

.
String.prototype.parseURL = function() {
    'use strict';
    //url
    var url = this.toString()
    var a = document.createElement('a');
    a.href = url;
    return {
        source: url,
        protocol: a.protocol,
        origin: a.origin,
        hostname: a.hostname,
        port: a.port,
        search: a.search,
        file: (a.pathname.match(/\/([^\/?-sharp]+)$/i) || [, ''])[1],
        hash: a.hash.replace('-sharp', ''),
        pathname: a.pathname.replace(/^([^\/])/, '/$1'),
        relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [, ''])[1],
        segments: a.pathname.replace(/^\//, '').split('/'),
        params: (function() {
            var ret = {};
            var seg = a.search.replace(/^\?/, '').split('&').filter(function(v, i) {
                if (v !== '' && v.indexOf('=')) {
                    return true;
                }
            });
            for (var i = 0, element; element = seg[iPP];) {
                var idx = element.indexOf('=');
                var key = element.substring(0, idx);
                var val = element.substring(idx + 1);
                ret[key] = val;
            }
            return ret
        })()
    }
};


'http://www.a.com/index.html?a=1&b=2'.parseURL().params//{a:1,b:2}
Menu