这篇文章主要介绍了通过[removed].search来获取页面传来的参数,经测试是OK的
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
var r = [removed].search.substr(1).match(reg);
if (r!=null) return (r[2]); return null;
}
var sname = GetQuery
这篇文章主要介绍了通过[removed].search来获取页面传来的参数,经测试是OK的
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
var r = [removed].search.substr(1).match(reg);
if (r!=null) return (r[2]); return null;
}
var sname = GetQuery