vue中map使用方法

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)
		}