小程序 父组件调用子组件的方法

当父组件引用了子组件的时候,会遇到父组件执行子组件的方法

父组件中

wxml: id='filter-cmp' bind:filterTriger='filterTriger'>

js:    this.selectComponent('#filter-cmp').restFilterDatas();

子组件中: 定义方法 restFilterDatas

你可能感兴趣的:(小程序 父组件调用子组件的方法)