【问题标题】:What is meant by "timeout" in toastr.optionstoastr.options 中的“超时”是什么意思
【发布时间】:2015-06-07 12:54:33
【问题描述】:

我在网上搜索了很多,但在toastr.options中找不到timeOutextendedTimeOut的描述

toastr.option = {
showDuration : its the time the toastr is visible. 
timeOut : ??  (I need help here from you guys)
extendedTimeOut : ?? (I need help here from you guys)
}

【问题讨论】:

    标签: toastr


    【解决方案1】:

    在没有用户交互的情况下,toast 将显示多长时间

    toastr.options.timeOut = 30; 
    

    用户将鼠标悬停在 Toast 上后会显示多长时间

    toastr.options.extendedTimeOut = 60; 
    

    https://github.com/CodeSeven/toastr#timeouts

    【讨论】:

      猜你喜欢
      • 2016-03-12
      • 1970-01-01
      • 2016-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-12
      • 2017-06-11
      • 2018-03-05
      相关资源
      最近更新 更多