chrome.runtimeAPI有一些事件,我可以使用这些事件将监听器添加到上下文菜单。目前我正在使用chrome.runtime.onStartup像这样:chrome.runtime.onStartup.addListener(function(){chrome.contextMenus.create({'title':'Add:%s','contexts':['selection']});});chrome.contextMenus.onClicked.addListener(onClickHandler);问题是chrome.runtime.onStartup将在用户启动或重