let json1 = { zjlx: { 2: "身份证", 4: "护照" }, xb: { 1: "男", 2: "女" } }; let xx = Object.values(json1.zjlx); console.log(xx); 输出结果为: ["身份证","护照"]
let json1 = { zjlx: { 2: "身份证", 4: "护照" }, xb: { 1: "男", 2: "女" } }; let xx = Object.values(json1.zjlx); console.log(xx); 输出结果为: ["身份证","护照"]