for in 最后输出有个undefind 是什么原因呢 求大神告知
var o = {x:1,y:2,z:3}
undefined
var key;
undefined
for(key in o){console.log(key)}
VM5771:1 x
VM5771:1 y
VM5771:1 z
undefined
var o = {x:1,y:2,z:3}
undefined
var key;
undefined
for(key in o){console.log(key)}
VM5771:1 x
VM5771:1 y
VM5771:1 z
undefined
2020-03-30
举报