post请求
- 采用字符串拼接的方式进行传参
this.axios.post(`https://..../updateAddress?addressName=${this.addressName}&houseNumber=${this.houseNumber}&userName=${this.userName}&userPhone=${this.userPhone}&isdefault=${this.isDefault}&addressId=${this.addressId}`)
.then(response => {
//...
})
复制代码
- json对象提交数据
let data = {
'user': { 'id': `