2

据我了解,MVC 模式的好处之一是能够替换其他视图而无需更改模型或控制器。

由于 Razor 视图引擎编译视图,如何在视图部署后更改或调整视图而无需重新部署应用程序?

4

1 回答 1

1

Razor views are compiled dynamically at runtime when they are requested by the ASP.NET runtime. You could replace your .cshtml/.vbhtml files directly on your webserver and the changes will be automatically picked up.

于 2013-06-16T08:26:31.933 回答