阅读:6469 次 编辑日期:2017-3-20
$ npm install title-notify --save-dev $ bower install inotify --save-dev
var iN = new iNotify({ effect: 'flash', interval: 500, message:"有消息拉!", audio:{ file: ['msg.mp4','msg.mp3','msg.wav'] }, notification:{ title:"标题内容!", body:'欢迎来到UW3C技术分享~' } }); function inotifyTest(){ iN.setFavicon(10).setTitle('新标题').notify({ title:"新通知", body:"欢迎来到UW3C技术分享~" }) }
var iN = new iNotify({ effect: 'flash', interval: 500, message:"有消息拉!", openurl:"http://www.uw3c.com", // 点击弹窗打开连接地址 notification:{ title:"标题内容!", body:'欢迎来到UW3C技术分享~' } }); function inotifyTest(){ iN.setFavicon(10).setTitle('新标题').notify({ title:"新通知", body:"欢迎来到UW3C技术分享~", openurl:"http://www.uw3c.com" // 点击弹窗打开连接地址 }) }
var iN = new iNotify({ effect: 'flash', interval: 500, message:"有消息拉!", onclick:function(){ //点击事件 console.log("欢迎") }, notification:{ title:"标题内容!", body:'欢迎来到UW3C技术分享~' } }); function inotifyTest(){ iN.setFavicon(10).setTitle('新标题').notify({ title:"新通知", body:"欢迎来到UW3C技术分享~", onclick:function(){ //点击事件 window.location.href = "http://www.uw3c.com"; } }) }