syntaxref.fm1.html

来自「这是java源码。」· HTML 代码 · 共 53 行

HTML
53 行
字号
<html><head><title></title></head><body bgcolor=#ffffff> <a href="tags.html">[Top]</a> <a href="tags.html">[Prev]</a> <a href="syntaxref.fm2.html">[Next]</a> <a href="Copyright.fm.html">[Bottom]</a><hr><br> <a name="15841"> </a><h2 align="center"> Output Comment</h2><p><a name="15842"> </a>Generates a comment that is sent to the client in the viewable page source.</p><a name="8758"> </a><h4> JSP Syntax</h4><blockquote><pre><code>&lt;!--</code> &#32; &#32;<em>comment</em> <code>[ &lt;%= </code><em>expression</em><code> %&gt; ] --&gt;</code></pre></blockquote><a name="16537"> </a><h4> Example 1</h4><blockquote><pre>&lt;!-- This file displays the user login screen --&gt;</pre></blockquote><p><a name="16510"> </a>Displays in the page source:</p><blockquote><pre>&lt;!-- This file displays the user login screen --&gt;</pre></blockquote><a name="16538"> </a><h4> Example 2</h4><blockquote><pre>&lt;!-- This page was loaded on	&lt;%= (new java.util.Date()).toLocaleString() %&gt; --&gt;</pre></blockquote><p><a name="16519"> </a>Displays in the page source:</p><blockquote><pre>&lt;!-- This page was loaded on January 1, 2000 --&gt;</pre></blockquote><a name="10210"> </a><h4> Description</h4><p><a name="15810"> </a>The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.</p><p><a name="16541"> </a>An <a href="syntaxref.fm4.html#11258">Expression</a> included in a comment is dynamic and is evaluated when the Web browser loads the page (that is, when the user first loads the page or reloads it later). You can use any valid JSP expression.</p><a name="9009"> </a><h4> See Also</h4><ul><a name="9010"> </a><li><a href="syntaxref.fm2.html#8764">Hidden Comment</a><a name="15872"> </a><li><a href="syntaxref.fm4.html#11258">Expression</a></ul><hr><br> <a href="tags.html">[Top]</a> <a href="tags.html">[Prev]</a> <a href="syntaxref.fm2.html">[Next]</a> <a href="Copyright.fm.html">[Bottom]</a><hr><br><i>Copyright  &#169; 1999, Sun Microsystems, Inc.   All rightsreserved.</i></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?