2013-10-23 30 views

回答

0

簡單模型有2個參數。確認(消息,回調)。 將您的代碼作爲JS函數傳回參數。

confirm("Are you sure you want to logout", function() { 
      //Your code here 
      window.location.href = '@Url.Action("LogOff", "Account")'; 
     });