cshtml razor

禁止转换字符

 @(Html.Raw(@item.conent))

三目运算

@(ViewBag.submitType==1?"blue":"")

原文地址:https://www.cnblogs.com/rockywood/p/7770599.html