$.ajax()中dataType

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

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

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

原文地址:https://www.cnblogs.com/caicaizi/p/5974034.html