toastr.success('This Is Success Message', 'Bottom Center', {
"positionClass": "toast-bottom-center",
timeOut: 5000,
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"tapToDismiss": false
})
location.href = "/index";
上面这段代码,现在消息框一闪而过,根本看不清消息就已经跳转了。