$.ajax()中dataType

$.ajax()中dataType的默认值为TEXT,如果没有指明json,

 

如果指明是json格式,但返回回来是字符串格式,则走向error,

后端返回数据时要echo ,不要retrun,不然定走error

posted on 2016-10-18 17:01  caigan  阅读(1490)  评论(0编辑  收藏  举报