var nk = [1,2,3] var urlStr = '' urlStr += '?' nk.forEach(e=>{ urlStr+="ruzhuId="+e+"&" }) urlStr = urlStr.replace(/&$/,"")
https://www.jianshu.com/p/68d81da4e1ad 参考axios
delete请求带参数 需要将参数放到data里面 data: 参数
2024-03-04 18:10:29
var nk = [1,2,3] var urlStr = '' urlStr += '?' nk.forEach(e=>{ urlStr+="ruzhuId="+e+"&" }) urlStr = urlStr.replace(/&$/,"")
https://www.jianshu.com/p/68d81da4e1ad 参考axios
delete请求带参数 需要将参数放到data里面 data: 参数
下一篇:JS获取url中的指定参数