Home >Web Front-end >HTML Tutorial >Several comments in JSP_html/css_WEB-ITnose

Several comments in JSP_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:34:191455browse

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(); %>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn