Notify.js

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

Github stars Tracking Chart

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" }); 将缺省类设置为“成功”。

Overview

Name With Ownerjpillora/notifyjs
Primary Language
Program languageJavaScript (Language Count: 0)
Platform
License:MIT License
Release Count6
Last Release Namev0.4.2 (Posted on 2016-04-03 00:59:57)
First Release Name0.3.1 (Posted on 2014-02-06 00:30:23)
Created At2013-03-27 09:29:29
Pushed At2023-02-09 11:15:02
Last Commit At2022-11-02 15:44:28
Stargazers Count1.9k
Watchers Count69
Fork Count742
Commits Count77
Has Issues Enabled
Issues Count107
Issue Open Count68
Pull Requests Count10
Pull Requests Open Count17
Pull Requests Close Count13
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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>

To the top