ajax body json
2020-08-11 本文已影响0人
jeneen1129
$.ajax(
{
url: '',
'data': JSON.stringify({
}),
'type': 'POST',
'processData': false,
'contentType': 'application/json', //typically 'application/x-www-form-urlencoded', but the service you are calling may expect 'text/json'... check with the service to see what they expect as content-type in the HTTP header.
success: function (msg) {
}
}
);