V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
meisei81
V2EX  ›  问与答

chrome.tabs.query 在其它 tab 页面没启用

  •  
  •   meisei81 · Dec 31, 2016 · 1809 views
    This topic created in 3408 days ago, the information mentioned may be changed or developed.

    在本地调试 chrome 的扩展程序的时候,在 chrome://extentions 页面刷新后, alert 函数有被执行,但是换做在其它页面(e.g. www.baidu.com)就没被调用,不知为何。是不是与该函数的权限有关? 我在 manifest.json 里已经制定了"permission":["tabs"]

    chrome.tabs.query({}, function (tab) { alert("abc"); });

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1095 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:55 · PVG 07:55 · LAX 16:55 · JFK 19:55
    ♥ Do have faith in what you're doing.