当用户在安装扩展时提交数据时,数据将存储在chrome.storage.sync.set()中。当用户点击Gmail中的“Compose”按钮时,内容脚本将发送一条消息,输入的数据将作为响应发送到该消息。当我第一次加载Gmail时,数据返回'undefined‘。我能够修复它的唯一方法是在我的代码中添加'alert();‘。这真的很不方便,我找不到任何其他的方法来解决它。(这将在chrome.runtime中从background.js检索数据)
var name, title, co
/doOther.js',['01']); //how can I ensure the child process k runs on a different core than this processk.on('message',function(msg){ callback(); }k.on('message',func