小程序往数组里添加元素

发布于 7 年前作者 junshi12490 次浏览最后编辑 7 年前来自 ask

choose:function(e){

console.log(e)

var that = this;

var item = e.currentTarget.dataset.item;

item.isChecked = !item.isChecked;

that.chooseList.push(e)

console.log(that.chooseList);

},

1 回复
fengmin
fengmin1 楼5 年前

问题呢?出的是撒问题撒。。。都不描述清楚。。。