📌  相关文章
📜  从 chrome 扩展开发人员处获取当前选项卡 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:13.629000             🧑  作者: Mango

代码示例1
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => {
    let url = tabs[0].url;
    // use `url` here inside the callback because it's asynchronous!
});