📅  最后修改于: 2022-03-11 14:50:48.852000             🧑  作者: Mango
chrome.runtime.onInstalled.addListener(function(details){
if(details.reason == "install"){
//call a function to handle a first install
}else if(details.reason == "update"){
//call a function to handle an update
}
});