vue_js遍历双重数组对象-编程思维

1 getAllInfo: [[{iP: '3', domain: '环境', attribute: '0',name:'服务器名'}]]
1 for (let i = 0; i < _this.getAllInfo.length; i++) {
2                         for (let j = 0; j < _this.getAllInfo[i].length; j++) {
3                             if (_this.getAllInfo[i][j].attribute >= 10) {
4                                 _this.health = '警告';
5                             }
6                      }
7         }

 

版权声明:本文版权归作者所有,遵循 CC 4.0 BY-SA 许可协议, 转载请注明原文链接
https://www.cnblogs.com/lwl80/p/16267382.html