javascript - The front-end uses the jquery.jsonp.js plug-in to report cross-domain errors SyntaxError: Unexpected token:
高洛峰
高洛峰 2017-07-05 10:41:10
0
1
939

I want to use the jquery.jsonp.js plug-in on the front end without any processing in the background.
This format is $.jsonp({ ... }). I have read all the examples on the Internet, but the error SyntaxError: Unexpected token:
Does anyone know what is going on? Has anyone used it? Thanks.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
刘奇

The final data format returned by the request address is not jsonp data format. The jsonp data format should be: jsonpCallback({msg:'this is json data'}) . It is recommended that the browser check the final responsedata

of the network request.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template