Home > Web Front-end > JS Tutorial > body text

JSP comments may affect the page loading speed and allow the code to continue executing.

高洛峰
Release: 2017-01-04 10:40:52
Original
1430 people have browsed it

Use the "" comment on the jsp page. The java code in the comment will still be executed. You can check the page source code to see the completed content. This will prevent The code you want to execute is executed, affecting loading speed. For example, the following code:

性别:<select name="qureyItemGroup.sex" class="selinp" style="width:75px;"> 
<option value="">全部</option> 
<s:iterator value="listDictSex"> 
<option <s:property value="@com.hljw.util.UtilAPI@getHtmlSelected(dict_value,qureyItemGroup.sex)"/> value="<s:property value="dict_value"/>"><s:property value="dict_name"/></option> 
</s:iterator> 
</select>
Copy after login

It is recommended to use comments such as "<%-- --%>" on jsp pages, and such comments are not visible when viewing the source code on the page.

More jsp comments may affect the page loading speed and allow the code to continue executing. Please pay attention to the PHP Chinese website for related articles!


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!