📄 detail.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<c:if test="${mcList==null}">
<c:redirect url="/servlet/ShowMcServlet" />
</c:if>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
<title>商品详细信息</title>
</head>
<script language="javascript" type="text/javascript">
<!--跳转至购物车-->
function addCart(nid){
location.href="/lmhshop/servlet/CartManager?action=add&mcID="+nid;
}
function hBack(){
history.back();
}
</script>
<body>
<table width="60%" border="1" align="center">
<tr>
<th width="22%" rowspan="5" scope="row">
<img name="mcImage" src="../mcimg/${mcBean.simg}">
</th>
<th width="78%" align="left" scope="row">
商品名:${mcBean.sname}
</th>
</tr>
<tr>
<th align="left" scope="row">
单价:¥${mcBean.nprice}
</th>
</tr>
<tr>
<th align="left" scope="row">
是否缺货:${mcBean.smctag}
</th>
</tr>
<tr>
<th align="left" scope="row"> </th>
</tr>
<tr>
<th align="left" scope="row">
商品描述:${mcBean.sdescription}
</th>
</tr>
<tr>
<th colspan="2" align="right" scope="row">
<a href="#" onClick="addCart(${mcBean.nid});return false;" target="_blank">立即购买</a>
<a href="#" onClick="hBack();" >返回</a>
</th>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -