js 调用浏览器 Notification
const notification = window.Notification || window.mozNotification || window.webkitNotificationif (notification) { // 可以通过使用箭头函数变更this指向 notification.requestPermission(result => { console.log(result) // granted(允许) || denied(拒绝)