摘要: // 通过原型继承创建一个新对象 function inherit(p){ if (p == null) throw TypeError();//p是一个对象,但不能是null if(Object.create) //如果object.create()存在 return Object.create( 阅读全文
posted @ 2018-06-24 15:16 金牛座的女孩 阅读(129) 评论(0) 推荐(0) 编辑