diff --git a/wechat-master/web/index.jsp b/wechat-master/web/index.jsp index 2ea9e27..9d07d8a 100644 --- a/wechat-master/web/index.jsp +++ b/wechat-master/web/index.jsp @@ -21,105 +21,139 @@ Time: 15:55 To change this template use File | Settings | File Templates. --%> +<%-- JSP页面指令,设置内容类型、字符集和页面编码为UTF-8 --%> <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %> +<%-- 引入JSTL核心标签库,用于在JSP中简化Java对象的操作 --%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -<%--设置主机名--%> +<%-- 设置一个名为host的变量,值为localhost:8080/wechat(注意:这个设置实际上没有生效,因为缺少标签的闭合和正确的使用方式) --%> +<%-- 正确的使用应该像这样:,但此处代码有误,仅作为注释说明意图 --%> + <%-- 设置主机名(此行代码有误,应包含在标签内部,并指定作用域)--%> +<%-- JSP注释,不会输出到客户端 --%> + - + <%-- 设置网页的字符编码为UTF-8 --%> - wechat + wechat <%-- 网页标题 --%> + <%-- 设置网页的图标,这里使用的是微信的一个图标链接 --%> + <%-- 引入Bootstrap的CSS文件,用于快速开发响应式页面 --%> + <%-- 引入jQuery库,用于简化JavaScript的DOM操作和Ajax请求 --%> + +
- + - - + - - + +
+ + + + + + + + + + + + + + + + + + + + + + +