- post方法一:用默认的 header
header里 contentType值为:“application/json”,
注意示例 data的值为 :JSON.stringify(e.detail.value),
formSubmit:function(e){
//console.log('form发生了submit事件,携带数据为:' + JSON.stringify(e.detail.value))
var formdata = e.detail.value
//console.log(formdata);
uni.request({
url:'http://localhost:12722/api/user/login',
method:'POST',
data:JSON.