首页 > 技术文章 > this.setData 微信小程序JS赋值渲染列表
panlaixing 2017-04-07 10:17 原文
js文件
this.setData({ AAA:"aaa"});
wxml:
{{AAA}}
此时wxml就会显示aaa 类似于smarty模板引擎