标签:io ar cti amp new sp on res c
//获取地址栏参数
function getQueryStringByName(name) {
var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result == null || result.length < 1) {
return "";
}
return result[1];
}
//调用:
id=getQueryStringByName("id");
标签:io ar cti amp new sp on res c
原文地址:http://www.cnblogs.com/wycfcqt/p/3930470.html