urlToJson

function urlToJson(){
var ret = {};
window.location.search.substr(1).replace(/(\w+)=(\w+)/ig, function(a, b, c){ret[b] = unescape(c);});
return ret;
};
posted @ 2018-01-16 16:31  likwin  阅读(101)  评论(0编辑  收藏  举报