标签:UNC null uri url nbsp reg return sub sea
1、获取 url 地址的参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return decodeURI(r[2]);
} else {
return null;
}
}
标签:UNC null uri url nbsp reg return sub sea
原文地址:https://www.cnblogs.com/xqmyhome/p/11956982.html