url.js
function (surl) {
            var search = (surl || window.location.search).match(/\?.*(?=\b|#)/);
            search && (search = search[0].replace(/^\?/, ''));
            if (!search) return {};
            var queries = {},
                params = search.split('&');

            util.each(params, function (item) {
               var param = item.split('=');
               queries[param[0]] = param[1];
            });

            return queries;
        }
function (surl) {
            var search = (surl || window.location.search).match(/\?.*(?=\b|#)/);
            search && (search = search[0].replace(/^\?/, ''));
            if (!search) return {};
            var queries = {},
                params = search.split('&');

            util.each(params, function (item) {
               var param = item.split('=');
               queries[param[0]] = param[1];
            });

            return queries;
        }
function ( surl ) { var search = ( surl || window . location . search ) . match ( / \?.*(?=\b|#) / ) ; search && ( search = search [ 0 ] . replace ( / ^\? / , '' ) ) ; if ( ! search ) return { } ; var queries = { } , params = search . split ( '&' ) ; util . each ( params , function ( item ) { var param = item . split ( '=' ) ; queries [ param [ 0 ] ] = param [ 1 ] ; } ) ; return queries ; }
params in url of location.search
params in url of location . search