如何使用 javascript 重定向到新页面
How to redirect to new page using javascript
如何在新页面中重定向 whatsapp api link?当我按确定时,whatsapp api 在同一页面中打开。
到目前为止我已经尝试过的代码。
setTimeout(function () {
applause.play();
swal(
"Congratulations",
"" + SelectedItem + ".",
"success"
).then(function() {
window.location.replace("https://api.whatsapp.com/send?phone=+91123456789" );
});
}, 5500);
window.open("https://api.whatsapp.com/send?phone=+91123456789", '_blank');
如何在新页面中重定向 whatsapp api link?当我按确定时,whatsapp api 在同一页面中打开。
到目前为止我已经尝试过的代码。
setTimeout(function () {
applause.play();
swal(
"Congratulations",
"" + SelectedItem + ".",
"success"
).then(function() {
window.location.replace("https://api.whatsapp.com/send?phone=+91123456789" );
});
}, 5500);
window.open("https://api.whatsapp.com/send?phone=+91123456789", '_blank');