怎么在mounted调用this.ceshi的方法
来源:11-12 歌曲列表组件add-song组件实现(3)
			砖头一枚
2018-12-31



怎么在mounted调用this.ceshi的方法
写回答
	1回答
- 
				
						ustbhuangyi
2019-01-01
你这个是因为闭包 this 指向不对,用箭头函数或者在 nextTick 用其它变量缓存 this。另外 ceshi 这个方法最好定义在 methods 里面
032019-01-01 
相似问题