📜  附加到 url javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:25.534000             🧑  作者: Mango

代码示例1
var url = window.location.href;    
if (url.indexOf('?') > -1){
   url += '¶m=1'
}else{
   url += '?param=1'
}
window.location.href = url;