以下是前台接收:
$.request = function (name) {
var search = location.search.slice(1);
var arr = search.split("&");
for (var i = 0; i < arr.length; i++) {
var ar = arr[i].split("=");
if (ar[0] == name) {
if (unescape(ar[1]) == ‘undefined‘) {
return "";
} else {
return unescape(ar[1]);
}
}
}
return "";
}
以下是后台接收:
原文地址:https://www.cnblogs.com/clj0102/p/9375524.html
时间: 2024-10-09 11:02:53