变量名中的如何用变量i,并获取变量值?
console.log(self22.data.weeklimit[0].time1)
正确输出: 5
console.log([`self22.data.weeklimit[0].time${i}`])
输出: [“self22.data.weeklimit[0].time1”] 如何修改以上语句
console.log(self22.data.weeklimit[0].time1)
正确输出: 5
console.log([`self22.data.weeklimit[0].time${i}`])
输出: [“self22.data.weeklimit[0].time1”] 如何修改以上语句