WebRoot/qiantai/maijia/mycart.jsp

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
  <head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
   
    <link href="<%=path %>/css/style.reset.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/css3style.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/font-color-size.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/table.select.style.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/login-style.css" rel="stylesheet" type="text/css" />
    <link href="<%=path %>/css/index-body-style.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/user.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/css/shanghu_zx.css" rel="stylesheet" type="text/css" />
    <script type='text/javascript' src='<%=path %>/dwr/interface/cartService.js'></script>
	<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
	<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
    <script type="text/javascript">
            function delGoodsFromCart(goodsId)
	        {
	            cartService.delGoodsFromCart(goodsId,callback111);
	        }
           
            function clearCart()
	        {
	            cartService.clearCart(callback111);
	        }
           
            function modiNum(goodsId,quantity)
	        {
	          alert("购买数量必须大于等于1");
	          if(quantity<1)
		            {
		                alert("购买数量必须大于等于1");
		                window.location.href="<%=path %>/qiantai/cart/mycart.jsp";
		                
		            }
		            else
		            {
	                     var r1 = /^[_0-9]{0,20}$/
	                     var val=r1.test(quantity); //str为你要判断的字符 执行返回结果 true 或 false
	                    if(val==false)
	                       {
	                           alert("数量必须是数字,请重新输入");
	                       }
	                    else
	                       {
	                            cartService.modiNum(goodsId,quantity,callback111);
后面还有 112 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。