xml:<block wx:for="{{post_key}}" wx:for-item="{{item}}"></block> data:{ post_key:[]//数组给个名字 } onload:function(){ var posts_content[{内容1},{内容2}]//定义数组对象 this.setData({ post_key:posts_content }) } 相关文章: 2021-11-22 2022-12-23 2021-11-03 2022-12-23 2022-02-09 2022-01-25 2022-02-07