function addURLParam(url,name,value){
url += (url.indexOf('?')==-1 ? '?' : '&');
url += encodeURIComponent(name) + '=' + encodeURIComponent(value);
return url;
}
向URL末尾添加查询字符串参数的辅助函数
最新推荐文章于 2022-07-15 18:15:00 发布
function addURLParam(url,name,value){
url += (url.indexOf('?')==-1 ? '?' : '&');
url += encodeURIComponent(name) + '=' + encodeURIComponent(value);
return url;
}