第一次MVC记录
1.Nuget安装Vue与Element UI,然后添加
<script src="~/Scripts/vue.min.js"></script> <link rel="stylesheet" href="~/Content/ElementUI/element-ui.css" /> <script src="~/Scripts/ElementUI/element-ui.js"></script>
ps:没用vue,elementui没效果
2.切换页面@Html.ActionLink学习
https://www.cnblogs.com/felix-wang/p/7112281.html
Html.ActionLink("linkText","actionName","controlName",routeValues,htmlAttributes)
ps:添加View后,要在control里面输出,如添加View2
@Html.ActionLink("detail", "View2",new { id=10000})
public ActionResult View2(int id) { ViewBag.test = id; return View(); }