concat()和push()的区别

item:
      { name: '米妮', age: 220 }
    ,

list.push(items);
item:[
      { name: '米妮', age: 220 }]
    ,

list = list.concat(list,items);
    this.setData({
      list
    })
 
 
 
 
 
 
 

猜你喜欢

转载自www.cnblogs.com/xm666/p/11366132.html