返回列表,区域

 

@a//输出a
@name
@(a+12)//做运算处理加小括号
@@//输出@用@@
@Html.Raw(html) //输出html用html.raw+变量名

 

返回列表

 

 

 

 

 

//[NonAction]不允许访问方法
//[ActionName("dd")]访问的方法名字变成dd
// GET: Student
public ActionResult Index()
{
return View();
}

 

 

 v

posted @ 2021-11-27 12:22  浅夏y  阅读(39)  评论(0编辑  收藏  举报