Notyf 演示安装使用 介绍
Notyf 是一个超级简单的,响应式,原生 javascript 插件,用来显示通知。
演示
安装
安装 npm 包:
npm install --save notyf
添加至项目:
<html> <head> ... <link rel="stylesheet" type="text/css" href="/path/to/notyf.min.css"> </head> <body> ... <script src="/path/to/notyf.min.js" type="text/javascript"></script> </body> </html>
使用
//Create an instance of Notyf var notyf = new Notyf(); //Display an alert notification notyf.alert('You must fill out the form before moving forward'); //Display a success notification notyf.confirm('Your changes have been successfully saved!');
Notyf 演示安装使用 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。