3
是否有可能将值为null的参数传递给axios?看来,null values are just ignored ...Axios:在请求中发送空值作为参数
是否有可能将值为null的参数传递给axios?看来,null values are just ignored ...Axios:在请求中发送空值作为参数
一个空字符串应该做的伎俩。
var data = new FormData();
data.append('location_id', '');
axios.post('/location/update', data)
.then(function(response) {
console.log(response.data);
})
.catch(function(error) {
console.log(error);
});