// 获取URL中参数
function getQueryString(name) {
var result = window.location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result == null || result.length < 1) {
return "";
}
return result[1];
}
JavaScript中获取当前页面URL中的参数
最新推荐文章于 2024-07-15 22:27:12 发布