我在进行pnotify时遇到问题,我想检查是否存在通知,以不显示多个通知。 我的代码是这样的:
(new PNotify({
title: ''+lan[53]+'',
text: ''+lan[52]+'',
icon: 'glyphicon glyphicon-question-sign',
hide: false,
confirm: {
confirm: true
},
buttons: {
closer: false,
sticker: false
},
history: {
history: true,
maxInStack: 1
}
})).get().on('pnotify.confirm', function() {
// Some code here..
}).on('pnotify.cancel', function() {
// Some code here..
});