ASP.NET MVC4: - 介绍@RenderBody()&的原因是什么? ASP.NET MVC4中的@RenderSection()方法 [英] ASP.NET MVC4:-What was the reason to introduce @RenderBody() & @RenderSection() methods in ASP.NET MVC4
本文介绍了ASP.NET MVC4: - 介绍@RenderBody()&的原因是什么? ASP.NET MVC4中的@RenderSection()方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在ASP.NET MVC4中引入@RenderBody()和@RenderSection()方法的原因是什么。还有差异。
我知道@ RenderBody()就像是一个contentPlaceHolder但是引入@RenderSection()方法的原因是什么
What was the reason to introduce @RenderBody() & @RenderSection() methods in ASP.NET MVC4 .Tell the differences also.
I know that @RenderBody() is like a contentPlaceHolder but what was the reason to introduce @RenderSection() method
推荐答案
参见这篇CP文章: MVC 3中的RenderBody,RenderPage和RenderSection方法。
这篇关于ASP.NET MVC4: - 介绍@RenderBody()&的原因是什么? ASP.NET MVC4中的@RenderSection()方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文