你能帮我限制烤面包机的外观吗?给定的情况是,当我登录系统时,欢迎 toastr 只会在主屏幕上出现一次,并且在整个会话中不会再次出现,直到我注销为止。
这是我的 toastr 代码
setTimeout(function() {
toastr.options = {
"closeButton": true,
"debug": false,
"progressBar": true,
"positionClass": "toast-top-right",
"onclick": null,
"showDuration": "500",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "linear",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
toastr.success("Welcome Admin", "Smartcomp Solutions Inc.");
},1000);
use "preventDuplicates": true,
在选项中
参考 http://codeseven.github.io/toastr/demo.html
DEMO http://jsfiddle.net/SantoshPandu/k26ztyjh/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)