-1

simplemodal 可以确认持有功能吗?和alert()一样,alert()后面的代码在你点击之前不会运行。我试过了,但它不像这样工作。(我的英语很差,所以……)

4

1 回答 1

0

简单模型有 2 个参数。确认(消息,回调)。将您的代码作为 JS 函数传递以回调参数。

confirm("Are you sure you want to logout", function () {
            //Your code here 
            window.location.href = '@Url.Action("LogOff", "Account")';
        });
于 2013-10-25T15:39:13.217 回答