关于一段代码的迷惑JavaScript权威指南上有这么一段代码,结果比较让人迷惑,求分析解答...
var o = {x:1, y:2, z:3};var a = [], i = 0for(a[i++] in o);console.log(a); //['x', 'y', 'z']