5
 <script>
    var options1 = { positionClass: 'toast-top-full-width', timeOut: 0};
    toastr.error('Message1', 'Title1', options1);

    var options2 = { positionClass: 'toast-bottom-right', timeOut: 5000}
    toastr.success('Message2', 'Title2', options2);
</script>

5s后成功吐司消失,但右下角不显示

4

1 回答 1

-1

演示站点在表单设置的更改被识别之前调用 toastr.clear() 并且生成的 toastr 反映了新选项。我建议将此调用合并到您的代码逻辑中。

于 2014-12-19T18:19:55.267 回答