时间: 2021-07-31 作者:daque
湮没解释 写在jsp步调中,但不是发给存户。 jsp 语法<%-- comment --%> 例子:<%@ page language="java" %> <html> <head><title>a comment test</title></head> <body> <h2>a test of comments</h2> <%-- this comment will not be visible in the page source --%> </body> </html> 刻画用湮没解释标志的字符会在jsp编写翻译时被忽视掉。这个解释在你蓄意湮没或解释你的jsp步调时是很有效的。jsp编写翻译器不是会对<%--and--%>之间的语句举行编写翻译的,它不会表露在存户的欣赏器中,也不会在源代码中看到在<%-- --%>之间,你不妨大肆写解释语句,然而不许运用 "--%>",即使你非要运用请用"--%\>".