2015年11月4日
摘要: 1、Factory基本写法 简单工厂模式之一个对象有时候可以代替许多类 2、Factory差异性写法 简单工厂模式之差异化写法——三种弹窗效果封装 阅读全文
posted @ 2015-11-04 17:16 杨杨0708 阅读(256) 评论(0) 推荐(0) 编辑
摘要: oopObject——js面向对象编程实例 阅读全文
posted @ 2015-11-04 17:15 杨杨0708 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1、单对象克隆 singleClone 2、多对象克隆 multipleClone 阅读全文
posted @ 2015-11-04 17:13 杨杨0708 阅读(203) 评论(0) 推荐(0) 编辑
摘要: prototypeInherit 阅读全文
posted @ 2015-11-04 17:11 杨杨0708 阅读(155) 评论(0) 推荐(0) 编辑
摘要: groupInherit 阅读全文
posted @ 2015-11-04 17:10 杨杨0708 阅读(160) 评论(0) 推荐(0) 编辑
摘要: constructorfunctionInherit 阅读全文
posted @ 2015-11-04 17:09 杨杨0708 阅读(192) 评论(0) 推荐(0) 编辑
摘要: classInherit 阅读全文
posted @ 2015-11-04 17:08 杨杨0708 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 技巧点:对象方法中返回当前对象就可以链式调用了,即方法中写return this; returnObject 阅读全文
posted @ 2015-11-04 17:06 杨杨0708 阅读(291) 评论(0) 推荐(0) 编辑
摘要: closure的自调用函数式写法 阅读全文
posted @ 2015-11-04 17:03 杨杨0708 阅读(130) 评论(0) 推荐(0) 编辑
摘要: closure 阅读全文
posted @ 2015-11-04 17:02 杨杨0708 阅读(144) 评论(0) 推荐(0) 编辑