会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你是me的only
博客园
首页
新随笔
联系
订阅
管理
2016年5月23日
摘自(http://javascript.ruanyifeng.com/)
摘要: switch结构不利于代码重用,往往可以用对象形式重写。 <!--[if !supportLists]-->ü <!--[endif]-->typeof运算符 <!--[if !supportLists]-->ü <!--[endif]-->instanceof运算符 <!--[if !suppor
阅读全文
posted @ 2016-05-23 11:35 你是me的only
阅读(434)
评论(0)
推荐(0)
2015年4月19日
JS之继承(摘自高程)
摘要: 原型链 function SuperType(){ } SuperType.prototype.name="name"; SuperType.prototype.sayName= function () { return this.n...
阅读全文
posted @ 2015-04-19 17:58 你是me的only
阅读(175)
评论(0)
推荐(0)
2015年4月17日
js之创建对象(摘自高程)
摘要: 工厂模式function factorial(name,age){ var o=new Object(); o.name=name; o.age=age; o.sayName= function () { alert(th...
阅读全文
posted @ 2015-04-17 16:09 你是me的only
阅读(110)
评论(0)
推荐(0)
公告