【发布时间】:2018-05-10 19:43:11
【问题描述】:
我正在尝试使用 html5 通知,现在我正在努力将 html 元素加载到通知正文中
下面的代码我试过了
let string = document.getElementById('map')
let myNotification = new Notification('Incomming calls', {
body: string.innerHTML
}).addEventListener('click',function(){
console.log('Notification clicked' + message)
})
提前致谢
【问题讨论】: