js跨域总结

 

1、document.domain+iframe的设置
2、动态创建script
3、利用iframe和location.hash
4、window.name实现的跨域数据传输
5、使用HTML5 postMessage
6、利用flash

7、jsonp

本地的话,可以利用花瓶、gulp等工具

原文地址:https://www.cnblogs.com/cynthia-wuqian/p/6961244.html