【bootstrap】Bootstrap Notify的使用步骤
2024-09-03 01:54:58
Bootstrap Notify说明文档:http://bootstrap-notify.remabledesigns.com/
Bootstrap Notify的GitHub地址:https://github.com/mouse0270/bootstrap-notify
自己使用步骤:
1.引入js【需要提前引入jQuery和bootstrap的js】
<script src="../static/js/admin/bootstrap-notify.min.js"></script>
2.引入动画css【需要提前引入bootstrap的css】
<link href="../static/css/login/animate.css" rel="stylesheet" />
3.使用
//按钮点击事件
$(".seachA").click(function(){
var notify= notifyMsg("德玛西亚");
}); function notifyMsg(msg){
var notify = $.notify({
// options
icon: 'glyphicon glyphicon-warning-sign',
title: '警告',
message: msg,
target: '_blank'
},{
// settings
element: 'body',
position: null,
type: "warning",
allow_dismiss: true,
newest_on_top: true,
showProgressbar: false,
placement: {
from: "bottom",
align: "center"
},
offset: 20,
spacing: 10,
z_index: 1031,
delay: 5000,
timer: 1000,
url_target: '_blank'
}); return notify;
}
4.效果
最新文章
- 记一个简单的sql查询
- WPF ItemsControl ListBox ListView比较
- Wincap安装出现“error opening file for writing wpcap.dll”之解决办法
- [转载]Magento 店铺多语言设置
- 九度OJ1172--哈夫曼树
- 代码审查 Code Review
- 【Maven实战】传递性依赖的问题
- Linux BFS简介
- windows下grunt安装提示不成功
- NoSql数据库使用
- C#操作AD及Exchange Server总结
- 根据本周本月本日来查询数据 C#winform数据查询
- js page click
- 快速设计ComboBox下拉框
- 童话故事 --- 什么是SQL Server Browser
- java接口变量问题
- RX 和 TX
- maven source 1.3 中不支持泛型 解决办法
- JavaScript 系列博客(六)
- mysql创建和调用out参数的存储过程