vue中map使用方法 陈月月 2020-11-03 72 阅读1分钟 data() { return { ccc:[], }, mounted() { this.aaa() }, aaa(){ let ddd=this.tabBars.map((item)=>{ return item.name }) this.ccc=ddd; console.log(this.ccc) }