📅  最后修改于: 2022-03-11 15:02:29.745000             🧑  作者: Mango
async function getCurrentTabUrl() {
let queryOptions = { active: true, currentWindow: true };
let [tab] = await chrome.tabs.query(queryOptions);
return tab.url
}