map循环遍历

data.map(function(item){
  item.show = false;     //将拿到的data循环给每一项添加show属性
});

猜你喜欢

转载自www.cnblogs.com/lml-lml/p/9294521.html