我的数据格式如图
for (const mn of this.taskData) {
if (mn.Status === 'Active') {
this.isGD = mn.ResourceData.TaskNumber;
}
}
循环后的
本文介绍了一种使用循环遍历任务数据的方法,通过检查每个任务的状态,如果状态为'Active',则更新特定变量。此过程有助于管理和跟踪活跃任务。
我的数据格式如图
for (const mn of this.taskData) {
if (mn.Status === 'Active') {
this.isGD = mn.ResourceData.TaskNumber;
}
}
循环后的
142

被折叠的 条评论
为什么被折叠?