Toastr JS 保持吐司无限期可见
Toastr JS keep toasts visible indefinitely
我正在尝试使用 John Papa 的 Toastr 插件来显示吐司消息。 (http://codeseven.github.io/toastr/demo.html)
我很难找到一个选项让祝酒词无限期地保留在屏幕上,而无需手动将“timeOut”和“extendedTimeOut”值设置为荒谬的高值。有谁知道这样做的方法吗?
toastr.options = {
"closeButton": true,
"timeOut": "500000",
"extendedTimeOut": "100000"
}
toastr.error('Error!');
基于code,将它们设置为0
timeOut: 5000, // Set timeOut and extendedTimeout to 0 to make it sticky
我正在尝试使用 John Papa 的 Toastr 插件来显示吐司消息。 (http://codeseven.github.io/toastr/demo.html) 我很难找到一个选项让祝酒词无限期地保留在屏幕上,而无需手动将“timeOut”和“extendedTimeOut”值设置为荒谬的高值。有谁知道这样做的方法吗?
toastr.options = {
"closeButton": true,
"timeOut": "500000",
"extendedTimeOut": "100000"
}
toastr.error('Error!');
基于code,将它们设置为0
timeOut: 5000, // Set timeOut and extendedTimeout to 0 to make it sticky