js遍历对象for(var idx : in object),idx默认返回string,而不是number类型!

这点很重要,如果要得到idx,用parseInt方法吧

猜你喜欢

转载自blog.csdn.net/zwcwu31/article/details/80033034