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 }) } 相关文章: