微信小程序云开发。为什么取不到第二个数组里的值呢?
getOption: function () {
var list3
let db = wx.cloud.database().collection('ceshi')
db.get().then(res => {
console.log('获取数据成功', res);
console.log('本科', res.data[0].benke);
this.init_echart(res.data[0].benke,res.data[0].shuoshi,res.data[0].boshi);
})
我想取到第二个数组里的数据,
然后把第二个数组'benke'和第一个数组里的'shuoshi'合并成一个数组
查了好多资料 没解决