标签:null regexp 地址栏 name function exp sea amp query
getQueryString:function(name) {
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = decodeURI(decodeURI(window.location.search)).substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
标签:null regexp 地址栏 name function exp sea amp query
原文地址:https://www.cnblogs.com/liw66/p/9962725.html