[英]Localized string message inside js
I have mvc actionLink like this 我有像这样的mvc actionLink
@Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('Are you sure you wish to delete this article?');" })
Now, I want to put @Localized.AreYouSure
string inside return confirm section. 现在,我想在返回确认部分中放入
@Localized.AreYouSure
字符串。 How can I do this. 我怎样才能做到这一点。
I guess this is what you want/mean: 我想这就是你想要/意味着什么:
@Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('" + Localized.AreYouSure + "');" })
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.