需要引用pnotify.custom.js和pnotify.custom.css两个文件
实例1:基本用法
Var pn= new PNotify({ title: '成功', text: '新增成功!', type:'error', //错误提示 hide: true, //是否自动关闭 delay:1000 //延迟1s后关闭 addclass: "stack-bottomright", stack: stack_bottomright, });
或者直接在函数体内直接用:
sucess:function(){
new PNotify({
title: "登录失败",
text: "用户名不存在或密码错误",
type: 'error'
});
}