Notify.js

Notify.js是一个jQuery插件,提供简单但完全可自定义的通知。(Notify.js is a jQuery plugin to provide simple yet fully customisable notifications. )

Github星跟踪图

Notify.js是一个jQuery插件,提供简单但完全可自定义的通知。

基本用法
1.元素通知
您可以在任何元素上放置通知:
$(".elem-demo").notify("Hello Box");

2.全局通知

如果您未指定元素,则通知将显示在左上角(除非您指定了其他位置)

$.notify("I'm over here !");
3.通知样式
每个样式可以定义用于对通知进行替换的一组类。 预打包版本包括引导通知样式(详见下面的样式)。 这些类包括:

Success

$.notify("Access granted", "success");
Info
$.notify("Do not press this button", "info");
Warning
$.notify("Warning: Self-destruct in 3.. 2..", "warn");
Error

$.notify("BOOM!", "error");

注意:此页面使用 $.notify.defaults({ className: "success" }); 将缺省类设置为“成功”。

主要指标

概览
名称与所有者jpillora/notifyjs
主编程语言
编程语言JavaScript (语言数: 0)
平台
许可证MIT License
所有者活动
创建于2013-03-27 09:29:29
推送于2023-02-09 11:15:02
最后一次提交2022-11-02 15:44:28
发布数6
最新版本名称v0.4.2 (发布于 2016-04-03 00:59:57)
第一版名称0.3.1 (发布于 2014-02-06 00:30:23)
用户参与
星数1.9k
关注者数66
派生数740
提交数77
已启用问题?
问题数107
打开的问题数68
拉请求数10
打开的拉请求数17
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Notify.js

A simple, yet fully customizable notification library

See demos and full documentation at:

https://notifyjs.com/


Notify.js is released under the MIT License.

Copyright © Jaime Pillora <dev@jpillora.com>