1.0.3 • Published 4 months ago
aa-notification v1.0.3
notification
这是一个前端重新部署如何通知用户刷新网页SDK
使用方法如下 The usage is as follows
import Notification from 'aa-notification'
const up = new Notification({
timer: 2000
});
// 未更新通知
up.on("no-update", () => {
console.log("未更新");
});
// 更新通知
up.on("update", () => {
console.log("更新了");
});