chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab){
if(changeInfo.status == 'complete'){
xxxxxxx;
}
// or
if(changeInfo.status == 'loading'){
xxxxxxx;
}
});
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab){
if(changeInfo.status == 'complete'){
xxxxxxx;
}
// or
if(changeInfo.status == 'loading'){
xxxxxxx;
}
});
转载于:https://my.oschina.net/u/1170277/blog/222354