单击“确定”后,sweetalert2 应重定向到另一个 html
sweetalert2 should redirecting to another html after clicking OK
不显示警报,重定向也不起作用
//sweetalert2
swal({
title: "Success!",
text: "Agent Created Successfully.",
type: "success",
}.then(function(){
alert('here');
window.location.href = "example.html";
}));
看来你的父母放错地方了:
//sweetalert2
swal({
title: "Success!",
text: "Agent Created Successfully.",
type: "success",
}).then(function(){
alert('here');
window.location.href = "example.html";
});
不显示警报,重定向也不起作用
//sweetalert2
swal({
title: "Success!",
text: "Agent Created Successfully.",
type: "success",
}.then(function(){
alert('here');
window.location.href = "example.html";
}));
看来你的父母放错地方了:
//sweetalert2
swal({
title: "Success!",
text: "Agent Created Successfully.",
type: "success",
}).then(function(){
alert('here');
window.location.href = "example.html";
});