meisei81
V2EX  ›  问与答

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

  •  
  •   meisei81 · Dec 31, 2016 · 1846 views
    This topic created in 3428 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   ·   5558 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 01:49 · PVG 09:49 · LAX 18:49 · JFK 21:49
    ♥ Do have faith in what you're doing.