现在的位置: 首页 > 综合 > 正文

js中<%%>等使用

2012年11月28日 ⁄ 综合 ⁄ 共 308字 ⁄ 字号 评论关闭

<% %> is simply short for <script runat="server"> </script> aka code render blocks.

<%# %> are binding expressions (plus the above).

<%= %> is the above + a Response.Write().

<%: %> is the above + a Response.Write() wrapped in Html.Encode (new in .NET 4.0).

<%$ %> is an ASP.NET expression, used to bind configuration or resource file data during runtime.

【上篇】
【下篇】

抱歉!评论已关闭.