我没有收到以下代码的确认警报
@Html.ActionLink("Logout", "Logout", "Home", new { onclick = "return confirm('Are you sure that you want to logout from Single-Sign-On Portal?');" }, null) 有什么帮助吗?
谢谢
发布于 2018-10-16 10:09:11
<%= @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
})https://stackoverflow.com/questions/52826035
复制相似问题