Javascript 单击“确定”后,sweetalert2应重定向到另一个html
未显示警报,以及重定向不起作用Javascript 单击“确定”后,sweetalert2应重定向到另一个html,javascript,sweetalert2,Javascript,Sweetalert2,未显示警报,以及重定向不起作用 //sweetalert2 swal({ title: "Success!", text: "Agent Created Successfully.", type: "success", }.then(function(){ alert('here'); window.location.href =
//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";
});