首页 > 其他 > 详细

关于插件toastr的学习

时间:2017-07-12 20:45:25      阅读:318      评论:0      收藏:0      [点我收藏+]

最关键的两文件

<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的学习

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!