您的位置:首页 > 其它

ContentType Accepts DataType

2016-06-01 15:48 183 查看
ContentType
: When sending data to the server, use this content type. Default is
application/x-www-form-urlencoded; charset=UTF-8
, which is fine for most cases.

Accepts
: The content type sent in the request header that tells the server what kind of response it will accept in return. Depends on
DataType
.

DataType
: The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response. Can be
text, xml, html, script, json, jsonp
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: