我认为 <%: %> 是自动进行Html编码的。 Scott Gu发表的这篇文章可以帮助你解释 - 它是在 .net 4 和 MVC2 中引入的。 http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx