【发布时间】:2019-08-01 09:07:18
【问题描述】:
【问题讨论】:
标签: javascript events permissions notifications firefox-addon
【问题讨论】:
标签: javascript events permissions notifications firefox-addon
【讨论】:
我相信您已经使用 then() 中的函数解决了承诺。我正在通过删除窗口来测试您的示例。它对我有用。
Notification.requestPermission().then(function(getperm)
{
console.log('Perm granted', getperm)
});
【讨论】: