An error was reported when requesting data from an interface across domains using jquery

   

Mar.24,2021

the returned data is not in the correct format
jsonp is the callback function callbackName ({name: "123"}) this kind of data you can look at the response


you have written the wrong code. It is not closed. If it is a request error, please see whether network has requested

.

clipboard.png


Please learn cross-domain fundamentals. The basics are the most important.
jsonp: "callback" and jsonpCallback: "message". Do you know what they do? no, these two sentences need to be written in the background.
for example,
System.out.print ('message (' + data+')') written in the background in Java language;
System.out.print ('callback (' + data+')');

Menu