- contentType: 发送信息至服务器时的内容编码类型,简单说告诉服务器请求所带数据的类型,在调试js时候通过chrome,头部默认值: "application/x-www-form-urlencoded"。
- dataType:告诉服务器,我要想什么类型的数据,除了常见的json、XML,还可以指定 html、jsonp、script或者text。
相关文章
- 10-10Unity3d之Http通讯GET方法和POST方法
- 10-10ajax的contentType和dataType
- 10-10在ajax请求中,contentType 和 dataType 的区别?
- 10-10Ajax功能之dataType和traditional
- 10-10Jmeter之HTTP请求默认值和查看结果树使用介绍(四)
- 10-10Qt之高级网络操作(HTTP/FTP快速上手)Qt之QHttpPart和QHttpMultiPart
- 10-10netty系列之:自建客户端和HTTP服务器交互
- 10-10Apache之Rewrite和RewriteRule规则梳理以及http强转https的配置总结
- 10-10Android学习之Http使用Post方式进行数据提交(普通数据和Json数据)
- 10-10python网络爬虫进阶之HTTP原理,爬虫的基本原理,Cookies和代理介绍