Controller
public class HomeController : Controller
{
// GET: Home
public ActionResult Index()
{
return View();
}
}
-------------------割---------------------------------
Views
@{
ViewBag.Title = "Home";
}
<h2>Home</h2>浏览器访问 Home/index 始终为空白,这是为啥呢?
public class HomeController : Controller
{
// GET: Home
public ActionResult Index()
{
return View();
}
}
-------------------割---------------------------------
Views
@{
ViewBag.Title = "Home";
}
<h2>Home</h2>浏览器访问 Home/index 始终为空白,这是为啥呢?
你新建一个带基本功能的项目看看微软是咋写的.