- ajax中的textStatus报错为parsererror?
-
聚码交流
-
0
0

- yhuxAvNbtxUM
0000-00-00 00:00:00
- 回帖
ajax中的textStatus报错为parsererror。<!DOCTYPEhtml><html><head><metacharset="UTF-8"><title></title></head><body><scriptsrc="js/jquery-1.8.0.min.js"type="text/javascript"charset="utf-8"></script><scriptsrc="js/jq.js"type="text/javascript"charset="utf-8"></script><scripttype="text/javascript">$.ajax({type:"GET",url:"http://192.168.20.205:8080/platform/banner/bannerApi",async:true,dataType:"jsonp",jsonp:"callback",success:function(req){console.log(req);},error:function(XMLHttpRequest,textStatus,errorThrown){alert(XMLHttpRequest.status);//400alert(XMLHttpRequest.readyState);//2alert(textStatus);//parsererror}});</script></body></html>求大神指点,之前真心没有碰到这种问题,获取其他方法也可以,坐等