摘要:
我按照网上的教程自定义helperpublicstaticclassHtmlExtensions{publicstaticstringSpan(thisHtmlHelperhelper,stringstrId,stringstrContent){returnstring.Format("<spanid=\"{0}\">{1}</span>",strId,strContent);}}然后在页面使用@usingWeb.Extentions;@{ViewBag.Title="Index";}<h2>Ind 阅读全文