Several comments in JSP_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:19
Original
1428 people have browsed it

1. Multi-line comments

1     <!-- 注释12 3         注释2 注释34 5         -->
Copy after login

or

1     <!-- 注释12 3         ……4 5     注释n6 7     //-->
Copy after login

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     --%>
Copy after login

3. Single-line comments

1     // 注释当前行
Copy after login

a. Reference, usually used at the beginning of jsp, such as

1     <%@ page import="java.lang.util.Date" %>
Copy after login

b. Nested Java code, such as

1    <%  Date now = new Date(); %>
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template