示例: test.wxml: 在组件内,使用属性wx:for=”{{ 数组 }}” ,数组当前项的变量名默认为item(变量需要使用双花括号) test.js: 在Page()内的data定义一个数组 运行: 相关文章: 2021-03-31 2021-12-21 2021-09-25 2021-04-16 2021-10-06 2021-07-07 2021-11-17 2021-11-08