public class HomeController : Controller
{
    public ActionResult Index()
    {
        //return View();
        //return RedirectToAction("Login", "Auth", new { Area = "Account" });//跳转到别的view页面
        return Redirect("Html/PersonalCenter.html");//注意:把你的html文件放在Views文件夹外的任何文件夹中,就可以直接访问了,
     注意文件夹名不能和你的mvc的任何Controller同名,否则你的Mvc的Controller对应的路径就无法访问了
} }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-04-01
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案