1
2
3
4
5
6
7 |
Object.create( null ) //空的对象<br>new Object()<br>{} //这三个东西区别在哪里?<br> //b 和 c 继承可 a ,如果a下面的某个属性改变了,b和c下面的也是跟着变的 a = {a:1,b:2,c: function (){ return
3}} b= Object( a ) c = Object( a ) a.c = function (){ return
2222} |
段博牛逼
原文:http://www.cnblogs.com/diligenceday/p/3593592.html