跟著視頻去求代碼,但不知道問(wèn)題出在哪里,數(shù)據(jù)綁定后顯示不了=========================================================Page({/**? * 頁(yè)面的初始數(shù)據(jù)? */data: {},imgPath:"/images/...",process:function(){var date = "Oct 11 2018";var date_ele = document.getElementById('id')},/**? * 生命周期函數(shù)--監(jiān)聽頁(yè)面加載? */onLoad: function (options) {console.log("onload")var post_content1={date:"May 1 2018",title:"麗雅高歌山東天后",post_img:"/images/11.jpg",content:"【大河的子孫呀~ 烏拉圭2-1淘汰葡萄牙!】#2018世界杯#第二場(chǎng)1/8決賽,烏拉圭2-1擊敗葡萄牙,殺入八強(qiáng)!第7分鐘,蘇亞雷斯傳中,卡瓦尼后點(diǎn)頭球破門。 ",view_num:"67",collect_num:"127",author_img:"/images/a-cup.png",}this.setDate({post_content1});},/**? * 生命周期函數(shù)--監(jiān)聽頁(yè)面初次渲染完成? */===================================================報(bào)錯(cuò)是說(shuō)這個(gè),但看不懂,求大神解答
微信小程序數(shù)據(jù)綁定后,顯示不了
Lawilet
2018-07-05 18:06:49