做完某事后,我运行以下代码:
var notification = webkitNotifications.createNotification(
'icon.png', // icon url - can be relative
'Done!', // notification title
'Just updated your list!' // notification body text
);
notification.show();
这当然会在用户屏幕中弹出一个通知。
无论如何都要为这个通知计时,以便它在 X 秒内自动关闭?
谢谢!R