function GetRequest() {
var url = location.search;
var theRequest = {};
if (url.indexOf("?") !== -1) {
var str = url.substr(1);
var strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
}
}
return theRequest;
}
获取url参数
最新推荐文章于 2024-11-03 11:01:20 发布