vue methods 中方法的相互调用

方法1:

methods1(){

  console.log(' 方法1 ')

}

方法2:

methods2(){

  console.log(' 方法2 ')

  this.$options.methods.methods1()

}

猜你喜欢

转载自www.cnblogs.com/sww-blog/p/9003920.html