var obj = { a: 1, b: 2, c: 3} Object.getOwnPorpertyNames(obj) // ['a', 'b', 'c'] ES6 中的方法 for … in Object.keys