⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsp-set1-right.htm

📁 写给JSP初级程序员的书
💻 HTM
字号:
<html>
<head>
<title>csdn_JSP语法(1)——HTML注释</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
A:link {
	COLOR: #000000; FONT-FAMILY:verdana,宋体,新宋体; TEXT-DECORATION: none
}
A:visited {
	COLOR: #333399; FONT-FAMILY:verdana,宋体,新宋体; TEXT-DECORATION: none
}
A:active {
	COLOR: #ff0000; FONT-FAMILY:verdana,宋体,新宋体; TEXT-DECORATION: none
}
A:hover {
	COLOR: black; TEXT-DECORATION: none
}
BODY {
	 COLOR: #000000; FONT-SIZE:9pt; LETTER-SPACING: normal; LINE-HEIGHT: 150%; WORD-SPACING: 2em
}
TH {
	FONT-SIZE: 9pt
}
TD {
	FONT-SIZE: 9pt
}
TD.page {
	COLOR: #000000; FONT-SIZE:9pt; LETTER-SPACING: normal; LINE-HEIGHT: 150%; WORD-SPACING: 2em
}
TD.title {
	COLOR: #000000; FONT-FAMILY:verdana,宋体,新宋体
}
TD.detail {
	COLOR: #9966ff; FONT-FAMILY:verdana,宋体,新宋体
}
</STYLE>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="5" topmargin="5" marginwidth="5" marginheight="5">

  <tr>
    <td>
      <div align="center"><font>JSP语法(1)——HTML注释<br>
        </font></div>
    </td>
  </tr>
  <tr>
    <td>HTML 注释 
      <p>在客户端显示一个注释. </p>
      <p>JSP 语法</p>
      <p>&lt;!-- comment [ &lt;%= expression %&gt; ] --&gt; </p>
      <p>例子 1</p>
      <p>&lt;!-- This file displays the user login screen --&gt; </p>
      <p>在客户端的HTML源代码中产生和上面一样的数据: </p>
      <p>&lt;!-- This file displays the user login screen --&gt; </p>
      <p>例子 2</p>
      <p>&lt;!-- This page was loaded on &lt;%= (new java.util.Date()).toLocaleString() 
        %&gt; --&gt; </p>
      <p>在客户端的HTML源代码中显示为: </p>
      <p>&lt;!-- This page was loaded on January 1, 2000 --&gt; </p>
      <p>描述</p>
      <p>这种注释和HTML中很像,也就是它可以在&quot;查看源代码&quot;中看到。</p>
      <p>唯一有些不同的就是,你可以在这个注释中用表达式(例子2所示)。这个表达示是不定的,<br>
        由页面不同而不同,你能够使用各种表达式,只要是合法的就行。</p>
      <p></p>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</body>
</html>

⌨️ 快捷键说明

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