four approachs can cross domain in javascript
1.jsonp
2.document.domain(only in frame and they have one same parent domain)
3.window.name
4.window.postMessage(only in Html5)
original website:http://www.cnblogs.com/2050/p/3191744.html
时间: 2024-10-11 07:10:41