-1
可以簡單確認保存功能嗎?和alert()一樣,alert()之後的代碼在你點擊之前不會運行。我試過了,但它不能這樣工作。 (我的英文很差,所以...)可以簡單確認保存功能嗎?
可以簡單確認保存功能嗎?和alert()一樣,alert()之後的代碼在你點擊之前不會運行。我試過了,但它不能這樣工作。 (我的英文很差,所以...)可以簡單確認保存功能嗎?
簡單模型有2個參數。確認(消息,回調)。 將您的代碼作爲JS函數傳回參數。
confirm("Are you sure you want to logout", function() {
//Your code here
window.location.href = '@Url.Action("LogOff", "Account")';
});