uni.request(){
method:'POST',//默认'GET'
data:{
"id":"123"
},
header:{
"Content-Type": "application/x-www-form-urlencoded"
},
datatype:'json'.//要求服务器返回来的数据成为json
success(response){
console.log('response')
console.log(response)
},
fail(err){
console.log('err')
console.log(err)
},
complete(com){
console.log('com')
console.log(com)
},
}
如有错误,希望指证,达到的效果确实与格式在postman下为form-data CONTENT TYPE为application/json的表单一致。