基于jquery的消息提示框toastr.js
2016-12-12 15:08
651 查看
1 //消息提示全局配置 2 toastr.options = { 3 "closeButton": false,//是否配置关闭按钮 4 "debug": false,//是否开启debug模式 5 "newestOnTop": false,//新消息是否排在最上层 6 "progressBar": false,//是否显示进度条 7 "positionClass": "toast-top-center",//消息框的显示位置 8 "preventDuplicates": false,//是否阻止弹出多个消息框 9 "onclick": null,//点击回调函数 10 "showDuration": "300", 11 "hideDuration": "1000", 12 "timeOut": "1500",//1.5s后关闭消息框 13 "extendedTimeOut": "1000", 14 "showEasing": "swing", 15 "hideEasing": "linear", 16 "showMethod": "fadeIn", 17 "hideMethod": "fadeOut" 18 }
在页面引入对应的toastr.css和toastr.js,先配置后使用
toastr.success('恭喜您,您已升级为财富合伙人!')
该插件github地址
相关文章推荐
- 分享一个基于jQuery,backbone.js和underscore.js的消息提示框架 -...
- 分享一个基于jQuery,backbone.js和underscore.js的消息提示框架 - Backbone.Notifier
- 分享一个基于jQuery,backbone.js和underscore.js的消息提示框架 - Backbone.Notifier
- jquery.cvtooltip.js 基于jquery的气泡提示插件
- 基于jQuery Tipso插件实现消息提示框特效
- Jquery消息提示插件toastr使用详解
- 基于jquery的tips悬浮消息提示插件tipso
- capacityFixed 基于jquery的类似于新浪微博新消息提示的定位框
- 福利到~分享一个基于jquery的智能提示控件intellSeach.js
- 基于jquery实现智能提示控件intellSeach.js
- TIPSO--基于JQUERY的消息提示框插件,用起来蛮顺手
- Jquery消息提示插件toastr
- 基于JQuery 的消息提示框效果代码
- 基于jQuery消息提示框插件Tipso
- 基于jquery实现智能提示控件intellSeach.js
- 基于jQuery的消息提示插件 DivAlert之旅(二)
- 仿百度搜索输入框提示JS代码(PHP+MySql数据库版)(基于jquery.autocomplete.js插件)
- 一款基于jquery超炫的弹出层提示消息
- 基于jQuery消息提示框插件Tipso
- js和jquery 实现网站来消息网站标题闪动提示