标签:regexp 正则 window sea ret substr app search UNC
//获取url参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);//search,查询?后面的参数,并匹配正则
if (r != null) return unescape(r[2]);
return null;
}
//调用
GetQueryString("appupdname")
标签:regexp 正则 window sea ret substr app search UNC
原文地址:https://www.cnblogs.com/zzguan/p/11357053.html