【发布时间】:2021-10-23 23:05:10
【问题描述】:
下面的Javascript 函数仍然无法指向相关的URL,尽管我看不到任何异常。因此,导致这篇文章的困惑。
if(msg) {
if (msg.provider == "sweetAlert") {
swal.fire({
title: msg.title,
text: msg.text,
icon: msg.icon,
timer: 5000,
confirmButtonColor: "black",
BorderColor: "white"
}, function(){
var url ='@Url.Action("Action","Controller")';
window.location.href = url;
});
}
因此,我们将非常感谢任何相关的反馈。
提前致谢。 最好的
【问题讨论】:
标签: javascript asp.net-mvc asp.net-core sweetalert sweetalert2