首先在 manifest.json 中聲明相關權限,然後在背景頁中加入如下代碼:
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
console.log(tabId + ' ' + tab.url + ' ' + changeInfo.status);
});
首先在 manifest.json 中聲明相關權限,然後在背景頁中加入如下代碼:
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
console.log(tabId + ' ' + tab.url + ' ' + changeInfo.status);
});
條款24 ----》條款24:若所有參數皆需類型轉換,請爲此採用non-member函數 **
12315 https://www.12315.cn/cuser/ 互聯網信息服務投訴平臺 https://ts.isc.org.cn/#/login