var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
var personName = decodeURI(decodeURI(getUrlParam('personName')));//中文url参数
var userNo = getUrlParam('userNo');//普通url参数
這樣應該可以了
var list = location.href.split('id=')[1].split('&')
var str = location.href.split("=")[1].split("&");
console.log(str[0]+str[1]+str[2]);
linkPar:function(key,v){//url取值:鍵名,字串
}
//取得url傳參
function getUrlParam(name) {
}