如下:
const dataObject = JSON.stringify({
"base64str": data.data,
"reportId": reportId,
"userId": userId
});
$.post({
url: 'http://192.168.81.157:5000/api/imageApp/v0/CaptureImage',
contentType: 'application/json',
data:dataObject,
success:function(json){
console.log(json)
},
error:function(){
console.log("出错了")
}
});