Home >Web Front-end >HTML Tutorial >Several comments in JSP_html/css_WEB-ITnose
1. Multi-line comments
1 <!-- 注释12 3 注释2 注释34 5 -->
or
1 <!-- 注释12 3 ……4 5 注释n6 7 //-->
2. The difference between multi-line comments is that the comment content will not be sent to the client and will be ignored by the JSP engine
1 <%-- 这里的内容不会被发送到客户端2 3 --%>
3. Single-line comments
1 // 注释当前行
a. Reference, usually used at the beginning of jsp, such as
1 <%@ page import="java.lang.util.Date" %>
b. Nested Java code, such as
1 <% Date now = new Date(); %>