#679·toastr

timeOut 不起作用

作者: ahmad13504创建于 2022年1月6日更新于 2025年3月30日

toastr.options = { "closeButton": true, // 是否显示关闭按钮 "debug": true, // 是否开启调试模式 "newestOnTop": true, // 显示最新消息在最上方 "progressBar": false, // 是否显示进度条 "positionClass": "toast-top-full-width", // 位置类名 "preventDuplicates": true, // 是否禁止重复显示同一条消息 "onclick": null, // 点击消息时的回调函数 "showDuration": 300, // 显示消息的持续时间 "hideDuration": 300, // 隐藏消息的持续时间 "timeOut": 5000, // 显示消息后自动隐藏的时间 "extendedTimeOut": 2500, // 显示消息后自动隐藏的延长时间 "showEasing": "swing", // 显示消息的动画效果 "hideEasing": "linear", // 隐藏消息的动画效果 "showMethod": "fadeIn", // 显示消息的方法 "hideMethod": "fadeOut" // 隐藏消息的方法 }

内容来源: CodeSeven/toastr