提取数组中的其中一个属性

let arr = []//新数组名称
             tabledata.forEach(e => {//原数组名称
                arr.push(e.name)                
            })
            console.log(arr);
posted @ 2020-12-14 13:16  Ayu~  阅读(246)  评论(0)    收藏  举报