asp.net mvc标签:<%:%>与<%=%>

d m*_*d m 5 tags asp.net-mvc

据我所知,这两种标签类型都做同样的事情.哪个更好用?

blu*_*blu 8

它在值上调用HtmlEncode

有关详细信息,请参阅ScottGu的博客.