前端请求时header中设置 contentType : ‘application/json’。
wx.request({ url: ‘http://localhost:8080/send/add2‘, method:‘POST‘, header: { "Content-Type": "application/json", "userId": id }, data:{ }, success(res){ }, fail(){ } })
2021-09-14 10:32:20
前端请求时header中设置 contentType : ‘application/json’。
wx.request({ url: ‘http://localhost:8080/send/add2‘, method:‘POST‘, header: { "Content-Type": "application/json", "userId": id }, data:{ }, success(res){ }, fail(){ } })