消息窗toastr 参数初始化

//toaster 全局参数

function initToastr() {

//如果父窗口已经生成toastr通知,则直接调用父窗口通知

//if (parent.toastr) {

toastr = parent.toastr || toastr ;

//}

toastr.options = {

"debug": true,

"positionClass": "toast-top-center",

"onclick": null,

"showDuration": "3000",

"hideDuration": "1000",

"timeOut": "3000",

"extendedTimeOut": "3000",

"showEasing": "linear",

"hideEasing": "linear",

"showMethod": "fadeIn",

"hideMethod": "fadeOut"

};

}

猜你喜欢

转载自blog.csdn.net/ImSanJin/article/details/84098558
今日推荐