POST请求中的content-type和datatype是什么?假设我有这个:
$.ajax({
type : "POST",
url : /v1/user,
datatype : "application/json",
contentType: "text/plain",
success : function() {
},
error : function(error) {
},
Run Code Online (Sandbox Code Playgroud)
是contentType我们送的吗?那么我们在上面的例子中发送的是JSON,我们收到的是纯文本?我真的不明白.
jquery ×1