jsp三种注释方法

xiaoxiao2021-02-28  43

HTML注释(输出注释):指在客户端查看源代码时能看见注释。例如,

<!-- this is an html comment.it will show up int the response. -->

JSP页注释(隐藏注释):指注释虽然写在JSP程序中,但不会发送给客户,因此在客户端查看源代码时不能看见注释。这样的注释在JSP编译时被忽略掉。

<%--this is a JSP comment.it will only be seen in jsp code--%>

Java注释:只能出现在Java代码区中,不允许直接出现在页面中。//单行注释   /*多行注释*/

转载请注明原文地址: https://www.6miu.com/read-85362.html

最新回复(0)