type
status
date
slug
summary
tags
category
icon
password
作用:
content-type: 发送信息至服务器时内容编码类型,简单说告诉服务器请求类型的数据。
默认值: "application/x-www-form-urlencoded"。
dataType:告诉服务器,我要想什么类型的数据,除了常见的json、XML,还可以指定 html、jsonp、script或者text
不使用content-type: application/json则data可以是对象。
使用content-yype: application/json则data只能是json字符串。