日期:2014-05-16 浏览次数:20384 次
var o = {x:1, y:2, z:3}; var a = [], i = 0 for(a[i++] in o); console.log(a); //['x', 'y', 'z']