标签:
function param(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
调用方法:
param("参数名");
标签:
原文地址:http://www.cnblogs.com/longzhaoyu/p/4813122.html