Notify.js
通过凉亭安装
bower install notify-js
一个使用jQuery和Bootstrap的非常简单的通知系统,能够使用回调
演示:
观看在线
要使其正常工作,请在您的应用中添加#notifications div并设置其样式
# notifications {
cursor : pointer;
position : fixed;
right : 0 px ;
z-index : 9999 ;
bottom : 0 px ;
margin-bottom : 22 px ;
margin-right : 15 px ;
max-width : 300 px ;
}
参量
:text要显示的文本
:callback :用户单击通知时的回调
:close_callback :x按钮的回调
:style : danger , warning