【发布时间】:2014-01-23 09:32:42
【问题描述】:
我需要创建一种简单的方法,以便能够使用插件中的 firefox sdk 在桌面上推送多个通知。
我的代码是:
notifications.notify({
title: "Jabberwocky ",
text: "Twas brillig, and the slithy toves ",
data: "did gyre and gimble in the wabe ",
onClick: function(data) {
console.log("click data: "+data);
// console.log(this.data) would produce the same result.
}
});
它运行良好,但在 for 循环中不工作。
【问题讨论】:
-
看我的回答here
标签: firefox-addon firefox-addon-sdk