使用Jquery和Rails 4
<script>
var jsonData = {
"81404": "Object",
"81408": "Object",
"81416": "Object",
"80387": "Object",
"73952": "Object",
"74697": "Object",
"81411": "Object",
"74700": "Object"
};
console.log(jsonData);
</script>
Mozilla输出(正确并符合预期)
Object { 81404="Object", 81408="Object", 81416="Object", 80387="Object", 73952="Object", 74697="Object", 81411="Object", 74700="Object"}
Chrome 输出 (错误, ???)
Object {73952: "Object", 74697: "Object", 74700: "Object", 80387: "Object", 81404: "Object", 81408: "Object", 81411: "Object", 81416: "Object"}
如何自动解决Chrome中的排序问题,有什么建议可以帮助吗?
我正在使用这些数据进行筛选,其顺序很重要。