if (_temp.dataView) { const _json = JSON.parse(_temp.dataView); const _tempArr = []; Object.keys(_json).forEach((key, index) => { _tempArr.push({ value: _json[key], name: key, }); }); _this.deviceDataView = [..._tempArr]; }
原文:https://www.cnblogs.com/Byme/p/15268510.html