源码
function interceptURL(){
var search = window.location.search
if(search){
var arr = search.slice(1).split('&');
var result = {};
for(var x = 0;x < arr.length;x++){
var value = arr[x].split('=');
result[value[0]] = value[1];
}
return result;
}
}
网友评论