我有这样的 mvc actionLink
@Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('Are you sure you wish to delete this article?');" })
现在,我想将 @Localized.AreYouSure
字符串放入返回确认部分。我该怎么做。
最佳答案
我想这就是你想要的/意思:
@Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('" + Localized.AreYouSure + "');" })
关于javascript - js 中的本地化字符串消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12042353/