摘要:
1.在Model中新建类MyHtmlHelperExt/// /// 扩展HtmlHelper方法/// 扩展方法三要素:静态类,静态方法,this关键字/// public static class MyHtmlHelperExt{ public static string MyLabel(... 阅读全文
摘要:
1.新建控制器HtmlStrpublic ActionResult HtmlStr(){ ViewData["strScript"] = "";//弹出一个对话框 ViewData["inputA"] = new HtmlString("编辑1");//创建a标签 ViewData["i... 阅读全文