HTML注释
在客户端显示一个注释。
JSP 语法
<!-- comment [ <%= expression %> ] -->
<!-- This file displays the user login screen --> 在客户端的HTML源代码中产生和上面一样的数据: <!-- This file displays the user login screen -->
<!-- This page was loaded on <%= (new java.util.Date()).toLocaleString() %> -->
<!-- This page was loaded on January 1, 2000 -->
<%-- comment --%>
<%@ page language="java" %> <html> <head><title>A Comment Test</title></head> <body> <h2>A Test of Comments</h2> <%-- This comment will not be visible in the page source --%> </body> </html>
<%! declaration; [ declaration; ]+ ... %>
<%! int i = 0; %> <%! int a, b, c; %> <%! Circle a = new Circle(2.0); %>
新闻热点
疑难解答