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 => {
网友评论