恩。。其实也没啥要记录的,记住关键一点就是必须要有return,不管是几重,比如:
arr.map((item, index) => { return ( item.arr2.map((item2, index2) => { return ( console.log(item2) ) }) ) }) 标签:03,return,map,item2,js,item From: https://www.cnblogs.com/iuniko/p/17176110.html
恩。。其实也没啥要记录的,记住关键一点就是必须要有return,不管是几重,比如:
arr.map((item, index) => { return ( item.arr2.map((item2, index2) => { return ( console.log(item2) ) }) ) }) 标签:03,return,map,item2,js,item From: https://www.cnblogs.com/iuniko/p/17176110.html