首页 > 技术文章 > ajax返回数据成功 却进入error方法

kunlunmountain 2016-10-20 11:31 原文

应该是dataType的原因,dataType为json,但是返回的data不是json格式

于是将dataType:"json"去掉就ok了

推荐阅读