若地址栏URL为:abc.html?m=tomms&c=allsearchlist&pageNo=1&pageNum=20&text=1
//JavaScript获取url,并把url中的参数变成数组的方法,arr数组的值就是各参数值
var url = window.document.location.href.toString();
var u = url.split("?");
var arr = [];
if(typeof(u[1]) == "string"){
u = u[1].split("&");
for(var i in u){
var a = (u[i].split("="));
arr[a[0]] = a[1];
}
}