[cross domain] four approachs to cross domain in javascript

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

posted @ 2014-09-02 10:11  二师弟tl  阅读(120)  评论(0编辑  收藏  举报