📅  最后修改于: 2022-03-11 15:00:13.629000             🧑  作者: Mango
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => {
let url = tabs[0].url;
// use `url` here inside the callback because it's asynchronous!
});