在js中 使用 for(var a in b) 之类遍历的时候 如果 b 是json对象不能保证按照原顺序遍历。 若想按照顺序遍历需要把 b 转换为 array。 顶 转载于:https://www.cnblogs.com/gongchixin/articles/7235843.html