//url操作 //例如 www.XXX.comv=18072303090463&id=175&token=zoen8EFPI84DOiHtHVYJwX1a69vh5JOB&languageCode=1&playSite=1#/?_k=2ge946 var urlParam=location.search.substring(1); var arrParam=zz.split('&') var obj={}; for(var i=0;i<arrParam.length;i++){ obj[arrParam[i].split('=')[0]]=arrParam[i].split('=')[1] } //删除id delete obj.id
//添加
obj.name='666'
转化为&连接
$.param(obj)