请求ajax失败的原因(进入到error) 原因: dataType 定义类型和返回类型不一致,我定义的json格式数据。 {data:[],num:0} 这种是不规则的字符串,不是严格的json格式 应该改成{"data":[],"num":"0"}