Notyf是一个超级简单的,响应式,原生javascript插件,用来显示通知。
演示安装安装pm包:
pm istall --save otyf添加至项目:
<html> <head> ... <lik rel="stylesheet" type="text/css" href="/path/to/otyf.mi.css"> </head> <body> ... <script src="/path/to/otyf.mi.js" type="text/javascript"></script> </body></html>使用//Create a istace of Notyfvar otyf = ew Notyf();//Display a alert otificatiootyf.alert('You must fill out the form before movig forward');//Display a success otificatiootyf.cofirm('Your chages have bee successfully saved!');
评论