function getPara() {
var paras = [];
var values = [];
var url = window.location.href; //获取网址字符串
var len = url.length;
var offset = url.indexOf("?");
var str = url.substr(offset, len);
var args = str.split("&");
len = args.length;
for (var i = 0; i < len; i++) {
str = args[i];
var arg = str.split("=");
if (args.length <= 1) break;
else {
paras[i] = arg[0]; //参数名
values[i] = arg[1]; //参数值
}
}
}
var paras = [];
var values = [];
var url = window.location.href; //获取网址字符串
var len = url.length;
var offset = url.indexOf("?");
var str = url.substr(offset, len);
var args = str.split("&");
len = args.length;
for (var i = 0; i < len; i++) {
str = args[i];
var arg = str.split("=");
if (args.length <= 1) break;
else {
paras[i] = arg[0]; //参数名
values[i] = arg[1]; //参数值
}
}
}