首页 > 解决方案 > 在页面加载时显示 PNotify 通知

问题描述

我有一个页面,我想在其中使用PNotify显示通知。如何使用PNotify -javascript 库在此页面上显示通知。

标签: javascriptjquerypnotify

解决方案


根据 PNotify文档

$(document).ready(function() {
    (new PNotify({
        title: 'Regular Notice,
        text: 'Check me out! I\'m a notice.',
        type: 'info',
        styling: 'bootstrap3'
    }));
});

推荐阅读