From a316dfeebde500fd1207bd2984c0767adb310cb5 Mon Sep 17 00:00:00 2001 From: threecat-up <60840921+threecat-up@users.noreply.github.com> Date: Fri, 3 Jun 2022 15:06:07 +0800 Subject: [PATCH] Update cart.jsp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改其中一个url的bug --- web/pages/cart/cart.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pages/cart/cart.jsp b/web/pages/cart/cart.jsp index 691afd3..84c5289 100644 --- a/web/pages/cart/cart.jsp +++ b/web/pages/cart/cart.jsp @@ -20,7 +20,7 @@ var count = this.value; var id = $(this).attr("bookId"); if(confirm("你确定要修改【"+name+"】数量为"+count+"么?")) { - location.href="http://localhost:8080/bookstore1/cartServlet?action=updateCount&count="+count+"&id="+id; + location.href="http://localhost:8080/Book/cartServlet?action=updateCount&count="+count+"&id="+id; } else { this.value = this.defaultValue; } @@ -84,4 +84,4 @@ <%@include file="/pages/common/footer.jsp"%> - \ No newline at end of file +