react 改变大数组内容

 const tabsData=[...this.state.tabsData]
         this.setState({
             tabsData: tabsData.map((o,index)=> index == this.activeKey?{...o,num:Math.random()*10}:o)
            
         })

  

原文地址:https://www.cnblogs.com/lipu12281/p/13464004.html