From c0c390f27e6f7c46c02f8c932d71d04217c6b0ac Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Tue, 4 Jun 2019 19:49:27 +0800 Subject: [PATCH] 4 --- public/themes/simpleboot3/portal/shopcart/shop_cart.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html index 2f1af83..7de8f87 100644 --- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html +++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html @@ -116,8 +116,11 @@ *删除 */ function datadel(){ - $ids = $('.add'); - console.log($ids.length); + ids = $('.add'); + for(i=0;i<ids.length;i++){ + goods_id[] = ids[i].data('id'); + } + console.log(goods_id); } // 计算总计 -- libgit2 0.24.0