Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的页面上的 iframe 中嵌入一个网站,并在用户 +1 网站(iframe 中的那个)时获得回调。
这可能吗?我试图用谷歌搜索没有有趣的结果,也许有人事先知道。
由于安全限制,您将无法从 <iframe> 获取跨域内容。请参阅同源策略。
您可以使用 postMessage 在不同域的 iframe 之间进行对话。