小程序改变数据设置是:

this.setData({title: 'this is title'});

而wepy不需要setData,wepy的处理方式和vue一样,直接:

this.title = 'this is title';

 

demo:

微信小程序 - wepy动态数据绑定方法

微信小程序 - wepy动态数据绑定方法

*代码有使用iview-ui框架

相关文章:

  • 2021-08-24
  • 2021-09-17
  • 2022-02-03
  • 2022-03-13
  • 2021-11-19
  • 2021-07-30
  • 2022-01-04
  • 2021-09-07
猜你喜欢
  • 2021-12-03
  • 2021-11-19
  • 2021-12-30
  • 2022-01-15
  • 2022-01-17
  • 2021-07-13
相关资源
相似解决方案