码迷,mamicode.com
首页 > 其他好文 > 详细

关于插件toastr的学习

时间:2017-07-12 21:25:38      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:close   als   duration   win   option   null   通过   timeout   time   

最关键的两文件

<link href="<?php echo RESOURCES_FOLDER;?>/frame/css/plugins/toastr/toastr.min.css" rel="stylesheet">

<script src="<?php echo RESOURCES_FOLDER;?>/frame/js/plugins/toastr/toastr.min.js"></script>

开始配置toastr的基本信息

    toastr.options = {
            "closeButton": true,
            "debug": false,
            "progressBar": true,
            "positionClass": "toast-top-full-width",
            "onclick": null,
            "showDuration": "400",
            "hideDuration": "1000",
            "timeOut": "7000",
            "extendedTimeOut": "1000",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
          }

通过toastr.error("您好,你的权限级别不够无法访问");  进行开启 

 

关于插件toastr的学习

标签:close   als   duration   win   option   null   通过   timeout   time   

原文地址:http://www.cnblogs.com/ddxg/p/7157454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!