JS:
データ:{
listDatas:内部の要求されたデータ配列のヌル//存在
}
onLoad:機能(オプション){
CONST DB = wx.cloud.database()。
db.collection( 'otheritems')。取得()。その後、(RES => {// otheritemsは、データベースの名前の内側に設定されています
console.log(RES); //結果が成功した情報である場合には、正常データを更新
この= VAR。
that.setData({
listDatas:res.data
});
console.log(res.data)。
})。キャッチ(ERR => {
console.log(ERR); //更新はデータ出力障害情報を失敗した場合
})
}、