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); } // 计算总计