[英]Localized string message inside js
我有像這樣的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 + "');" })
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.