Page({
data: {
articles: [{type:"news",list:[]},{type:"zixun",list:[]}],
navbar: [{name:"",type:"news"},{name:"",type:"zixun"}],
currentNavbar: 0
}),
made a tab tab toggle drop-down function to load more data
this.setData({
"articles[0].list": initdata.concat(res.data.data)
})
articles [0] .list
this allows you to get data normally
articles [this.data.currentNavbar] .list
cannot be set to dynamic
report an error as follows: Only number 0-9 could inside []: articles [that.data.currentNavbar] .list