现在有2个页面分别位于不同的域下:
父页面的地址:http://local.example.org/iframe.html
子页面的地址: http://local.test.org/include.html
include 里有个test链接,点一下触发父页面的函数 .
利用改变父页面的锚点实现跨域。
http://local.example.org/iframe.html 代码
http://local.test.org/include.html 代码