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: 参数
--------------------------------------------------------------------------------------------------------------------------------
海量IT资源,JavaScript,Java,Python等各类实战课,体系课程资源,需要的可以加V: 2919293547