Different domains: protocol, domain name, port any one different;
1,JSONP cross-domain
In JS, it is not possible for us to use XMLHttpRequest to request data from different domains directly. However, it is really possible to refer to a JS script file on a different domain on the page, and the JSONP is implemented using this feature.
Introduce a JS file through the script tag, this JS file will execute the function we specified in the URL parameter, and will pass in the JSON data we need as parameters. So JSONP is the server side of the page to coordinate the corresponding.
2.document.domain to cross subdomains
3.window.name cross-domain
The newly introduced Window.postmessage method in 4.HTML5 to transfer data across domains
5.flash cross-domain
6. Setting up agents across domains on the server
http://blog.csdn.net/kongjiea/article/details/38867531
Several ways to achieve cross-domain access by JS