s200612321's recent timeline updates
s200612321

s200612321

V2EX member #27049, joined on 2012-09-22 00:04:19 +08:00
s200612321's recent replies
Mar 6, 2014
Replied to a topic by zencoding 程序员 Chrome 同步异常,丢失书签
TMD 昨天就因为这个还重做了系统,一直以为是 xfce 下面的 chrome 出问题了
Feb 26, 2014
Replied to a topic by s200612321 程序员 关于 chrome 插件开发的问题
@sneezry 好像明白了点
在 content script 创建iframe的时候,在 url 中传递hash 参数,
比如 <iframe src="/content/index.html?url='xxx/xxx/xxx'"></iframe>
然后在 iframe 里面就可以获取到 url='xxx/xxx/xxx'
这样应该可以吧,还没有调试
Feb 26, 2014
Replied to a topic by s200612321 程序员 关于 chrome 插件开发的问题
@sneezry 不太懂,如何在 content script 创建iframe的时候把url作为hash或者search写到src里
Feb 26, 2014
Replied to a topic by s200612321 程序员 关于 chrome 插件开发的问题
@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);
}
还有其他的方法传递消息吗?
一样想知道
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1610 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 16:34 · PVG 00:34 · LAX 09:34 · JFK 12:34
♥ Do have faith in what you're doing.