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: 参数
标签:nk,请求,get,urlStr,参数,数组,var,data
来源: https://www.cnblogs.com/bao2333/p/11511541.html