vue 客户端调用H5的方法
2021-07-14 本文已影响0人
高阳刘
mounted() {
//将要给原生调用的方法挂载到 window 上面
let me = this;
window['getAppPhone'] = () => {
this.getAppPhone();
}
},
methods: {
// app端调用此方法
getAppPhone(参数){
……
}
}
mounted() {
//将要给原生调用的方法挂载到 window 上面
let me = this;
window['getAppPhone'] = () => {
this.getAppPhone();
}
},
methods: {
// app端调用此方法
getAppPhone(参数){
……
}
}