后端返回对象,前端需要转为数组形式渲染、for (let key in template)
后端返回的是对象,前端需要转为数组展示// 后端返回的数据let object = { name: '姓名', ags: 23, sex: '男', height: '172.3' };// 创建模板函数function template() { let arrayDa = [ { matching: 'name', title: '姓名', }, { matching: 'ags', title: '年龄', }, { mat