标签:ring func substr location amp null regexp cti turn
/*获取地址栏参数*/
GetQueryString = function(name){
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURI(r[2]); return null;
}
标签:ring func substr location amp null regexp cti turn
原文地址:https://www.cnblogs.com/lucy1111/p/9056837.html