一,若想传递数组,可以按照如下的拼接形式:
&materialsTypeId=11&materialsTypeId=12&materialsTypeId=&materialsTypeId=
特点:
同一个Key值可以出现多次
Value值可以为空
二,我的案例
三,我的处理方式
主要就是这个qs函数的转化数组。
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
transformRequest: [data => Qs.stringify(data, {
indices: false })],
对应的qs使用:https://suwu150.blog.csdn.net/article/details/78333452