ZKX's LAB

jq写购物车 如何用jquery写多个购物车的数量曾减,我用jquery写了但只第一个购物车增减有用,其它的无效,代码如下:

2021-04-23知识13

源码 商城源码购物车程序 ';if request;(\"源码如下.bof thengrpname=rsgrp(grpstar=1elsegrpname=\"会员级别已被删除end ifrsgrp.closeset rsgrp=nothingelsegrpname=\"非注册会员\"游客\",conn,1,1if rs(\".redirect\"profile.asp?action=addtocartelseresponse;if request;22 thenresponse.open\"select istj,price2 from product where id=\"adodb;and request.cookies(\"Huibo\"adodb.cookies(\")<;>;\"\"thenQuatity=cint(Request;id&\"))end ifid=request.QueryString(\"id\")set rsvip=server.CreateObject(\"/title>;actionid\"select*from orders where username='\"&x&\".cookies(\")rs.cookies(end ifresponse.Endcase\"add\")if request;delconn;username\".eof and not rsgrp;grpid&\"\",conn,1,1grpid=rsvip(\")=1 thenstrprice2=formatnumber(rs(\"thenrsvip.open\"\"普通会员\",conn,1,1if rsmain;ll\".redirect\"addto.asp?action=show\")*grpstar;Huibo\")(\"username\"),grpstar from grpclass where grpid=\".form(\"style\".QueryString(\"\".eof thenexit doend ifloopresponse;price2\"adodb;vip\")set rsgrp=server.CreateObject(grpstar=1end ifselect case actioncase\".open\"select 。

jq效果加入购物车 每日科技fa. 。2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53。.

JS代码 做一个简易的购物车 效果图如下 楼主是想要点击合计就是出数值还是什么?如果说点击合计就算出值的话如下简易购物车商品名称数量(件)单价(美元)运费(美元)button onclick=\"fun()\">;合计<;/button>;<;/td>;input type=\"text\"name=\"goodsName\"/>;input type=\"text\"name=\"num\"id=\"num\"/>;input type=\"text\"name=\"price\"id=\"price\"/>;input type=\"text\"name=\"freight\"id=\"freight\"/>;input type=\"text\"name=\"total\"id=\"total\"/>;function fun(){var num=document.getElementById(\"num\").value;var price=document.getElementById(\"price\").value;var freight=parseInt(document.getElementById(\"freight\").value);var total=(price*num)+freight;document.getElementById(\"total\").value=total;}

#jq写购物车

随机阅读

qrcode
访问手机版