我想知道什么时候应该将我的课程标记为最终课程?
如果没有,我可以延长最后一堂课吗?
我正在使用 ipinfodb api 及其我想在常规课程中使用的最终类。
我正在尝试在toastr通知完成显示后重定向.我目前有ajax请求
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="_token"]').attr('value')
},
type: $(form).attr('method'),
url: $(form).attr('action'),
data: $(form).serialize(),
dataType: 'json',
success: function (data) {
toastr.success('Hello','Your fun',{timeOut: 2000,preventDuplicates: true, positionClass:'toast-top-center'});
return window.location.href = '/';
},
error: function (data) {
var html = '<div class="alert alert-danger">Email/Password is invalid</div>';
$('#loginMsg').html(html);
}
Run Code Online (Sandbox Code Playgroud)
问题是它显示通知但重定向到快速实际读取通知.如何在toastr通知隐藏后重定向?