vue 方法相互调用

vue在同一个组件内;

methods中的一个方法调用methods中的另外一个方法

可以在调用的时候 this.$options.methods.test2();

this.$options.methods.test2();一个方法调用另外一个方法;

猜你喜欢

转载自www.cnblogs.com/amingxiansen/p/9541917.html