<table cellspacing="0" id="products">
<tr>
<th class="product">产品</th>
<th class="price">单价</th>
<th class="count">数量</th>
<!-- <th class="total">小计</th> -->
<th>操作</th>
</tr>
<c:forEach items="${cart }" var="item">
<tr>
<%-- <input type="hidden" name="goodsid" id="goodsid" value="${item.goods.goodsid }"/> --%>
<td id="tp_id" style="display:none">${item.goods.goodsid
}</td>
<td class="product" id="goodsname">${item.goods.goodsname}</td>
<td class="price" id="price">¥<fmt:formatNumber
value="${item.goods.price}" pattern=".00"></fmt:formatNumber>
</td>
<td class="count"><span class="goods_cut"
onclick="goods_cut(${item.goods.goodsid});changePrice();">
<img src="${ initParam.resource }/image/jian.gif" alt="减少"
width="15px" height="15px" /> </span> <input
id="${item.goods.goodsid }count" class="num" type="text"
name="${item.goods.goodsid }count" value="${item.quantity}"
size="2" onblur="changePrice()" /> <span class="goods_add"
onclick="goods_add(${item.goods.goodsid});changePrice();">
<img src="${ initParam.resource }/image/jia.gif" alt="增加"
width="15px" height="15px" /> </span>
</td>
<td id="smalltotal" style="display:none">${item.goods.price
* item.quantity }</td>
<%-- <td class="total" id="total">¥<span id="amount"><fmt:formatNumber
value="${ item.goods.price * item.quantity }" pattern=".00"></fmt:formatNumber>
</span>
</td> --%>
<td class="count"><a href="javascript:void(0);"
onclick="javascript:toDelete(${item.goods.goodsid});">[删除]</a>
<!-- <input type="submit" name="action" value="删除" onclick="javascript:toDelete();"/> -->
</td>
</tr>
</c:forEach>
</table>
<div class="order_total">
<p id="discount" class="discount_tip"> </p>
详细解决方案
购物车的总价解决方案
热度:10 发布时间:2016-04-17 17:58:25.0
相关解决方案
- xml/xslt 变量自增。解决方案
- DB2 调用java自定义方法报错,请大牛帮忙~解决方案
- 一个JSP页面,在NETBEANS里报错!解决方案
- 急来者有分,晚了就没了!解决方案
- disable在IE8中可以接收焦点了?解决方案
- 求网页采集器的正则表达式。解决方案
- 关于FckEdit。解决方案
- servlet+jquery1.4.2(ajax error?)解决方案
- jsp、taglib、velocity、freemarker等都过时了吗?解决方案
- 有开发过CA认证的朋友,帮个忙!解决方案
- EXTJS中treepanel树内部机制?解决方案
- 高分求解!解决方案
- java可以跟PHP对接吗?解决方案
- 有什么办法在JSP页面在不使用<%%>情况下 使用数学函数Math.floor()解决方案
- 在JSP页面调用JavaBean,出错!初学!求指导!解决方案
- JS方法内取的值是false,给方法传递的值却是正确的,请高手指教。解决方案
- 求教各位大神,初学JSP看什么书比较好呢?新一点的。解决方案
- java调用so,解决方案
- JPA到底是神马?解决方案
- 什么是servlet容器?解决方案
- ajaxupload里onComplete:的response输出全是jsp代码?解决方案
- request.getCookies()方法得不到cookie,只得到一个内存cookie.解决方案
- 有哪些比较好用的嵌入式http server库或者组件?解决方案
- 还有无人有myeclipse7.0?解决方案
- struts2 EXCEL文件上传导入过程中进行字段的有效判断,求解!解决方案
- hibernate的Criteria在数据库中求和,float格式求和为什么只有一位小数?解决方案
- 新手集成SSH遇到困难。解决方案
- 2012年终总结?解决方案
- 说不出的难受,坐等老鸟(不需要安慰,只想听听看法)解决方案
- 终于能发300分的帖子了,可是这又有什么用呢。解决方案