【发布时间】:2020-03-27 20:02:23
【问题描述】:
悬停后,我在toastrjs 中找不到任何正确的更新计时器的方法。
我将extendedTimeOut 确定为0,当我将鼠标悬停在toastr 上时不会关闭它。
toastr 的超时时间是 10000 毫秒,但是当我完成悬停时,toastr 会立即隐藏。
在我将鼠标悬停在toastr 10000 毫秒后显示它的正确方法是什么。
我的 toastr 属性示例:
const inboxToastr = toastr;
inboxToastr.info(data.bubbleData, title, {
"tapToDismiss": false,
"closeButton": true,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-bottom-left", //position
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "10000",
"extendedTimeOut": "0",
"hideEasing": "linear",
"iconClass": "background-gray"
});
【问题讨论】:
标签: javascript toastr