简单好用的消息通知插件toastr
来源:互联网 发布:php测试工程师 编辑:程序博客网 时间:2024/06/05 17:21
简单好用的消息通知插件toastr
toastr是一款简单方便的基于jquery库的非阻塞通知提示插件,它可以直接通过参数来设置所以的样式设置,使用非常方便:
目录
- 简单好用的消息通知插件toastr
- 目录
- 引入核心文件
- 效果展示
- 示例
- 各参数说明
- positionClass参数补充
- 样式设定
- 源码下载
引入核心文件
- jquery.min.js
- toastr.min.js
- toastr.min.css
效果展示
示例
toastr.options = { closeButton: false, debug: false, progressBar: true, positionClass: "toast-top-full-width", onclick: null, showDuration: "300", hideDuration: "1000", timeOut: "2000", extendedTimeOut: "1000", showEasing: "swing", hideEasing: "linear", showMethod: "fadeIn", hideMethod: "fadeOut" }; toastr["success"]("标题", "内容");
直接调用以上js代码即可实现弹出框效果。
各参数说明
positionClass参数补充
toast-top-right
toast-botton-right
toash-bottom-left
toast-top-left
toast-top-full-width 这个是在网页顶端,宽度铺满整个屏幕
toast-bottom-full-width
toast-top-center顶端中间
toast-bottom-center
样式设定
toastr[‘error’](‘I am yanying’, ‘title’);
其中的error为显示的通知的样式类型,有4种选择
-success 成功,绿色
-info 信息,蓝色
-warning,警告,橙色
-error,错误,深红色
源码下载
https://github.com/lioyan1994111/component
阅读全文
1 0
- 简单好用的消息通知插件toastr
- toastr jQuery消息通知插件文档
- jquery 通知插件toastr
- jquery通知插件toastr
- 3、js插件---->jquery通知插件toastr的使用
- Jquery消息提示插件toastr
- 消息提示插件:toastr.js
- Jquery消息提示插件toastr使用详解
- 项目中用到的一个小插件,基于jQuery的消息提醒 toastr.js
- Toastr消息提示框的使用
- 好用的 jQuery 消息提醒插件
- toastr 插件使用
- angular toastr插件
- 基于jquery的消息通知插件
- 在项目中使用js的提示插件toastr
- Android简单的消息通知栏
- Vim ---- 简单好用的 vim 配置文件,不用插件
- Laravel应用简单好用的多级联动插件cxSelect
- HDU 4686 Arc of Dream
- CFgym:Old Chess Sets(dfs 循环)
- Linux 下载安装:weget、yum
- [leetcode]220. Contains Duplicate III
- Matlab学习笔记---视频处理
- 简单好用的消息通知插件toastr
- 巧用Android启动模式之singleTask,一步销毁多个Activity
- sort 排序
- PCA与SVD简洁解析(参考CS231n)
- MySQL:优化笔记(1)
- 设计模式之 观察者模式
- 洛谷 P3825 游戏[NOI 2017] (2-SAT)
- Django学习笔记(二)
- 22、栈的压入、弹出序列