var obj = {

name: '大雄',

age: 18,

sex: '男'

}

for (var k in obj) {

console.log(k);

console.log(obj[k]);

}