//获取URL参数
function getQueryString(name) {
var reg = new RegExp("(^|/?|&)" + name + "=([^&]*)(&|$)", "i");
var r = decodeURIComponent(location.href).substr(1).match(reg);
if (r != null) return r[2];
return null;
}
//获取URL参数
function getQueryString(name) {
var reg = new RegExp("(^|/?|&)" + name + "=([^&]*)(&|$)", "i");
var r = decodeURIComponent(location.href).substr(1).match(reg);
if (r != null) return r[2];
return null;
}