console.dir(someObject);

时间:2016-08-05 19:33:44   收藏:0   阅读:247

 

<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控制台查看结果

原文:http://www.cnblogs.com/zno2/p/4495192.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!