1
我想顯示一個關閉按鈕的永久通知,但它似乎只顯示沒有「x」關閉按鈕的permanotice示例。JQuery Pines通過關閉按鈕通知永久通知?
有松林中的樣本通知網站http://pinesframework.org/pnotify/:
要顯示永久通知:
if (permanotice) {
permanotice.pnotify_display();
} else {
permanotice = $.pnotify({
title: 'Now Look Here',
text: 'There\'s something you need to know, and I won\'t go away until you come to grips with it.',
nonblock: true,
hide: false,
closer: false,
sticker: false
});
}
這是破壞了通知:
if (permanotice.pnotify_remove) permanotice.pnotify_remove();
是有辦法通過單擊「x」手動關閉它的選項來顯示permanotice?