javascript - 在页面加载时显示 PNotify 通知
问题描述
我有一个页面,我想在其中使用PNotify显示通知。如何使用PNotify -javascript 库在此页面上显示通知。
解决方案
根据 PNotify文档:
$(document).ready(function() {
(new PNotify({
title: 'Regular Notice,
text: 'Check me out! I\'m a notice.',
type: 'info',
styling: 'bootstrap3'
}));
});
推荐阅读
- angular - Spring Boot 休息控制器调用
- css - Firefox 中 CSS 网格布局的不规则子宽度错误
- jquery - 有没有办法将页面的图标更改为“加载/忙碌”?
- javascript - 无法在 $.each 循环中的数组中推送键值对
- sql - 需要在 psql 中以特定格式输出
- mysql - Mysql - 获取错误的值
- android - 如何获取在另一个活动的 viewText 中选择的 GridView 数据
- javascript - ReactJS 中的 jQuery wrap 等价物
- java - JsonPathResultMatchers 无法成功验证响应
- android - 应用程序在 Android Studio 3.0 上创建抽屉活动时崩溃