这个绑定,用this.setData怎么写?
来源:19-4 使用数据填充新闻详情页面

购买时光
2018-03-28
写回答
2回答
-
不要上面一句 var postData = postsData.postList[postId];
直接写
this.setData({
postData : postsData.postList[postId]
});
112018-04-10 -
lcycq
2018-03-28
this.setData({
postData:postData
})
00
相似问题