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); %>
新聞熱點
疑難解答