wx.getStorage({
key: 'amount',
success: function(res) {
})
console.log(res.data)
},
}),
列印出來指定amount的內容[{"amount":"123123","borrower":"121","receiver":"12","borrowerAccount":"12"}]
但是我要取到里面的內容,怎么取
uj5u.com熱心網友回復:
wx.getStorage({key: 'amount',
success: function(res) {
console.log(res.data.amount)//物件這樣取
console.log(res.data[0].amount)//陣列這樣取啊
})
},
}),
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/125396.html
標籤:微信開發
上一篇:小程式萌新有問題,求大佬們解答下
下一篇:求助大神
