var postsData = require("../../data/posts-data.js");
Page({
data: {
autoplay: true,circular: true
},
onLoad: function (options) {
this.data.post_key = postsData.postList //通过这种方式为什么传递不了数据,但是换成//this.setData({post_key: postsData.postList})就没问题,我数据没问题的}
})
<block wx:for="{{post_key}}">