var obj = {"数量":"a","6":8,"剪刀":"c"};
var obj_Str=JSON.stringify(obj);
//输出obj_Str结果,key为数字时提前
{"6":8,"数量":"a","剪刀":"c"}
//用循环也一样
//下面结果都为8,a, c;也会改变
for(var i in obj) {
console.log(obj[i]);
}
Object.keys(obj).forEach(function(key){ console.log(key,obj[key]); });
Object.getOwnPropertyNames(obj).forEach(function(key){ console.log(key,obj[key]); });
Reflect.ownKeys(obj).forEach(function(key){ console.log(key,obj[key]); });