就是判断某条被选中时,取 cartCommodities.id 放放一个数组。能不用for循环实现?
for(let i = 0; i < this.order.cartCommodities.length; i++){if(this.order.cartCommodities.checked = true){
this.arr.push(this.order.cartCommodities.id);
}}
慕尼黑5688855
相关分类