hello阿诚

有兴趣留言交流

01- jsp注释

<%--
  Created by IntelliJ IDEA.
  Date: 2021/7/20
  Time: 22:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title> jsp注释</title>
</head>
<body>
<h2> jsp 注释</h2>

<pre>
    jsp 中有两种类型的注释
    1,显示注释
    能够在客户端查看的注释
    1,继承html 风格的注释   &lt; html 注释 &gt;
        <!--  html的注释  -->
    2,隐式注释
       不能在客户端查看的注释
        1, jsp自己的注释   &lt; % jsp注释 % &gt;
        <%--jsp 自己的注释    --%>
        2, 继承java 风格的注释
       // 单行注释
        /* 多行注释*/
</pre>

</body>
</html>


posted on 2021-07-21 13:55  陆秋明v  阅读(48)  评论(0编辑  收藏  举报

导航