问题:ajax请求报错:Uncaught SyntaxError: expected expression, got '<'
解决:因为返回的不是json格式,可以去除dataType,然后console.log返回值进行查看错误
方法:
1、去除 dataType: 'json'
2、增加 console.log(data);
3、解决后台bug
问题:ajax请求报错:Uncaught SyntaxError: expected expression, got '<'
解决:因为返回的不是json格式,可以去除dataType,然后console.log返回值进行查看错误
方法:
1、去除 dataType: 'json'
2、增加 console.log(data);
3、解决后台bug