1、在页面中获取
let appInstance = this.$parent (github)[https://github.com/wepyjs/wepy/issues/207]
2、在非app启动或page页面的模块内
import wepy from 'wepy'
let appInstance = wepy.$instance
1、在页面中获取
let appInstance = this.$parent (github)[https://github.com/wepyjs/wepy/issues/207]
2、在非app启动或page页面的模块内
import wepy from 'wepy'
let appInstance = wepy.$instance