如何只显示一个通知

时间:2019-05-08 12:15:41

标签: pnotify

我在进行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..
                });

0 个答案:

没有答案