3
ES6是否为对象属性引入了定义明确的枚举顺序?
ES6是否为对象属性引入了定义明确的枚举顺序? var o = { '1': 1, 'a': 2, 'b': 3 } Object.keys(o); // ["1", "a", "b"] - is this ordering guaranteed by ES6? for(let k in o) { console.log(k); } // 1 2 3 - is this ordering guaranteed by ES6?