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>