【发布时间】:2016-06-29 15:29:38
【问题描述】:
我正在尝试使用 John Papa 的 Toastr 插件显示敬酒消息。 (http://codeseven.github.io/toastr/demo.html) 我很难找到一个选项让敬酒无限期地保留在屏幕上,而无需手动将“timeOut”和“extendedTimeOut”值设置为高得离谱的值。有谁知道这样做的方法吗?
toastr.options = {
"closeButton": true,
"timeOut": "500000",
"extendedTimeOut": "100000"
}
toastr.error('Error!');
【问题讨论】:
标签: javascript toastr