上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 167 下一页
摘要: 桥接模式是一种既能把两个对象连接在一起,又能避免二者间的强耦合的方法。通过“桥”把彼此联系起来,同时又允许他们各自独立变化。 主要作用表现为将抽象与其实现隔离开来,以便二者独立化。 Untitled Document ... 阅读全文
posted @ 2017-05-20 23:52 无天666 阅读(373) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-20 18:53 无天666 阅读(228) 评论(0) 推荐(0)
摘要: Untitled Document Untitled Document 阅读全文
posted @ 2017-05-20 18:52 无天666 阅读(251) 评论(0) 推荐(0)
摘要: Untitled Document Untitled Document 阅读全文
posted @ 2017-05-20 12:39 无天666 阅读(455) 评论(0) 推荐(0)
摘要: Untitled Document Untitled Document 阅读全文
posted @ 2017-05-19 19:05 无天666 阅读(281) 评论(0) 推荐(0)
摘要: Untitled Document Untitled Document Untitled Document ... 阅读全文
posted @ 2017-05-19 17:05 无天666 阅读(892) 评论(0) 推荐(0)
摘要: 子类通过prototype访问父类原型对象的属性、方法。 子类通过call访问父类实例对象的属性、方法。不加call方法,访问不到父类实例对象的属性、方法。 父类和对象以静态方式加的属性、方法,子类对象访问不到。 阅读全文
posted @ 2017-05-19 13:45 无天666 阅读(358) 评论(0) 推荐(0)
摘要: 方式1:子类.prototype = 父类对象 Boy.prototype = new Person(); Sub.prototype = new Sup('张三'); //可以传参数也可以不传 既可以使用父类用this声明的属性、方法。也可以使用原型对象里面的属性、方法。 方式2:通过call调用 阅读全文
posted @ 2017-05-18 02:42 无天666 阅读(531) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-17 17:47 无天666 阅读(325) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-17 17:09 无天666 阅读(256) 评论(0) 推荐(0)
上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 167 下一页