vue oc
https://github.com/mcuking/mobile-web-best-practice(部分交互问题)
oc 传值到vue
mounted(){
let self = this;
window.hwajax = self.hwajax
},
methods:{
hwajax:function (strings) {
this.tokenString=strings;
},
}
oc 调用 vue 方法
created:{
window.save_write = this.save_write;
}
methods:{
save_write(){
//保存数据到后台
}
}