模块组件 js:
var value = 123;
this.triggerEvent('callSomeFun', value)父组件 wxml:
<component bind:callSomeFun="onLoad"></component>
参考地址:https://www.cnblogs.com/demodashi/p/9452967.html
模块组件 js:
var value = 123;
this.triggerEvent('callSomeFun', value)父组件 wxml:
<component bind:callSomeFun="onLoad"></component>
参考地址:https://www.cnblogs.com/demodashi/p/9452967.html
转载请注明出处: 知识改变命运 » 微信小程序模块执行父级方法