http之contentType和dataType

  1. contentType: 发送信息至服务器时的内容编码类型,简单说告诉服务器请求所带数据的类型,在调试js时候通过chrome,头部默认值: "application/x-www-form-urlencoded"。
  2. dataType:告诉服务器,我要想什么类型的数据,除了常见的json、XML,还可以指定 html、jsonp、script或者text。

http之contentType和dataType

上一篇:SmartSql = Dapper + MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting + ......


下一篇:pc端页面在移动端显示问题