我正在尝试使用John Papa的Toastr插件显示一个toast消息。(http://codeseven.github.io/toastr/demo.html)
我无法找到一个选项,让toast在屏幕上一直保持显示状态,而不需要手动将"timeOut"和"extendedTimeOut"值设置为非常高的数字。是否有人知道如何实现这个功能?
toastr.options = {
"closeButton": true,
"timeOut": "500000",
"extendedTimeOut": "100000"
}
toastr.error('Error!');