代码改变世界

vue methods 中方法的相互调用

2018-05-07 17:29  上山砍柴  阅读(7310)  评论(0编辑  收藏  举报

方法1:

methods1(){

  console.log(' 方法1 ')

}

方法2:

methods2(){

  console.log(' 方法2 ')

  this.$options.methods.methods1()

}