zno2

console.dir(someObject);

 

<script type="text/javascript">
        function test(){
            var array = [{"id":1},{"id":2}];
            console.dir(array);
        }
</script>

结果:

Array[2]
0: Object
id: 1
__proto__: Object
1: Object
id: 2
__proto__: Object
length: 2
__proto__: Array[0]
 

Console控制台查看结果

posted on 2016-08-05 18:47  zno2  阅读(205)  评论(0编辑  收藏  举报

导航