我没有收到有关以下代码的确认警报
@Html.ActionLink("Logout", "Logout", "Home", new { onclick = "return confirm('Are you sure that you want to logout from Single-Sign-On Portal?');" }, null)
有帮助吗?
谢谢
答案 0 :(得分:0)
<%= @Html.ActionLink("Logout", "Logout", "Home", new { onclick = "return confirm('Are you sure that you want to logout from Single-Sign-On Portal?');" }, null) %>
该块是否有“ <%=“和“%>”? 如果仍然无法正常工作,请尝试更换
new { class = "clickMe" })
$(".clickMe").click(function(){
//return confirm pop
})