Can I use jq ajax to obtain data from different domains? Is it okay to use ajax directly instead of jsonp? What do I need to do with the backend?
jsonp also requires some work on the backend. Basically, if it involves cross-domain, it requires some cooperation from the backend.
http://www.cnblogs.com/2050/p...
You can look at cross-domain related information. You can choose different solutions for complete cross-domain and cross-subdomain.
If you only support modern browsers, you can consider cors, which will be more convenient.
You need to fill in the relevant cross-domain permission header information in the background. . . .
jsonp also requires some work on the backend. Basically, if it involves cross-domain, it requires some cooperation from the backend.
http://www.cnblogs.com/2050/p...
You can look at cross-domain related information. You can choose different solutions for complete cross-domain and cross-subdomain.
If you only support modern browsers, you can consider cors, which will be more convenient.
You need to fill in the relevant cross-domain permission header information in the background. . . .