<script type="text/javascript" src="js/lhgcore.js"></script> <script type="text/javascript" src="js/lhgdialog.js"></script> <script type="text/javascript"> function selflog_show(id){ var num = document.getElementById("number").value; J.dialog.get({id: 'haoyue_creat',title: '购物成功',width: 600,height:400, link: '<%=path%>/servlet/CartServlet?id='+id+'&num='+num+'&action=add', cover:true}); } function add(){ var num = parseInt(document.getElementById("number").value); if(num < 100) { document.getElementById("number").value = ++num; } } function sub() { var num = parseInt(document.getElementById("number").value); if(num>1) { document.getElementById("number").value = --num; } } </script>
添加回答
举报
0/150
提交
取消