ajax正常请求进入error

问题:ajax正常请求和返回了,却进入error方法中,而不是success

解决:原因是ajax请求中设置了dataType: "text",删除这个就好了