Object.keys(obj),返回一个给定对象的属性名
var data = {'name':'zhangsan','age':22,'sex':'man'}
console.log(data) //{name: "zhangsan", age: 22, sex: "man"}
console.log(Object.keys(data)) //(3) ["name", "age", "sex"]
Object.keys(data).forEach((key,index)=>{
console.log(key) //name age sex
console.log(data[key]) //zhangsan 22 man
})