小程序刷新组件


<!--在父页面中给子组件添加相应ID--!>
<rating bindmyevent="score" class="rating" data-type="push_score"></rating>
onPullDownRefresh: function () {  //下拉刷新
    this.selectComponent(".rating").clearAll();//获取组件id,调用组件内的方法
}, methods:{ clearAll:function(){ //做相应操作,如initData }, },

原文链接:https://blog.csdn.net/qq_34279442/article/details/105295650


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM