@sneezry 还是会出问题 Uncaught SecurityError: Blocked a frame with origin "chrome-extension://ipafkdgpadpmhlokecilnbjfnflcojpp" from accessing a frame with origin "http://xxx.com". The frame requesting access has a protocol of "chrome-extension", the frame being accessed has a protocol of "http". Protocols must match. 我在 iframe 加载完后绑定一个事件 $(document).ready(function() { console.log(window.top.document.referrer); } 还有其他的方法传递消息吗?