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