2020-04-22post请求?xx=xx&xx=xx&xx=
2020-04-22 本文已影响0人
ClarkM
new URLSearchParams() 内置对象获取地
New URLSearchParams.png址栏的参数 通过键的方式拿到值
let params = new URLSearchParams()
for (var i = 0; i < this.multipleSelection.length; i++) {
params.append('idList', this.multipleSelection[i].id)
}
fetch({
method: 'post',
url:
/sbznjs/api/report/deleteBatch?${params}
,}).then(res => {