标签: google-chrome-extension
我想创建一个标签,并从popup.html
我可以使用chrome.tabs.create创建标签,并且可以获取标签id,但tab.status为loading时,无法发送消息。
chrome.tabs.create
id
tab.status
loading
也不可能等到chrome.tabs.get返回status=complete因为回调函数没有执行(bug?)
chrome.tabs.get
status=complete
我想不出另一种可能性从popup.html向选项卡发送消息。
请帮助:)