微信小程序 : 组件

操作_____组件数据

  • 获取 组件对象
  • let obj = this.selectComponent('single_key')
  • obj = 组件对象
  • obj.setData({cpt_key:value})
  • obj.cpt_function()
  • 操作 组件对象,调用其属性,方法
posted @ 2020-05-19 09:21  insense  阅读(138)  评论(0)    收藏  举报