【发布时间】:2015-09-13 16:18:11
【问题描述】:
我有两个域 - 我们称它们为 newssite.com 和 app.com。
我将在 newssite.com/myapp 上插入 app.com 的 iframe 版本。
类似的东西。
当人们点击该 iframe 中的链接时,我希望浏览器中的顶部主 URL 更新,以便人们可以直接链接到它,然后我将在 iframe 中加载正确的 url。
它应该更新为类似 newssite.com/myapp#!app.com/new/link.html
反正我能做到吗?我不断收到跨域错误..
【问题讨论】:
标签: javascript jquery html iframe cross-domain