contentType和dataType

contentType: 告诉服务器,我要发什么类型的数据 

dataType:告诉服务器,我要想什么类型的数据,如果没有指定,那么会自动推断是返回 XML,还是JSON,还是script,还是String。

posted @ 2017-08-14 09:47  方帅  阅读(253)  评论(0编辑  收藏  举报