ajax请求报parsererror错误是由于解析json时出错,请检查服务端是否返回ajax请求的dataType的类型: 1、dataType:'json',需返回封装好的json数据 2、dataType:'text',返回字符串即可