vue methods 中方法的相互调用
方法1:
methods1(){
console.log(' 方法1 ')
}
方法2:
methods2(){
console.log(' 方法2 ')
this.$options.methods.methods1()
}
相关推荐
同一页框架中javascript函数相互调用
parent.frames['leftFrame'].functionname()自己理解吧
时间:2024-03-29 20:53
方法1:
methods1(){
console.log(' 方法1 ')
}
方法2:
methods2(){
console.log(' 方法2 ')
this.$options.methods.methods1()
}
parent.frames['leftFrame'].functionname()自己理解吧