摘要:
//获取地址栏参数functiongetQueryString(name){varreg=newRegExp("(^|&)"+name+"=([^&]*)(&|$)","i");varr=window.location.search.substr(1).match(reg);if(r!=null)returnunescape(r[2]);returnnull;}用法:alert(GetQueryString("参数名1"));alert(GetQueryString("参数名2&q 阅读全文