【发布时间】:2011-08-09 13:49:26
【问题描述】:
做完某事后,我运行这段代码:
var notification = webkitNotifications.createNotification(
'icon.png', // icon url - can be relative
'Done!', // notification title
'Just updated your list!' // notification body text
);
notification.show();
当然会在用户屏幕中弹出通知。
无论如何都要为这个通知计时,以便它在 X 秒内自动关闭?
谢谢! 回复
【问题讨论】:
-
详细说明请看这个答案:stackoverflow.com/a/51572172/3089950
标签: google-chrome notifications auto-close