首页 > 代码库 > 关于插件toastr的学习
关于插件toastr的学习
最关键的两文件
<link href="http://www.mamicode.com/<?php echo RESOURCES_FOLDER;?>/frame/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<script src="http://www.mamicode.com/<?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的学习