会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhanghuiyun
博客园
首页
新随笔
联系
管理
订阅
2016年1月28日
js-原型以及继承小案例
摘要: 1 function human(name,tall){ 2 this.name=name; 3 this.tall=tall; 4 this.toSleep=function(){ 5 alert('no sleep'); 6 } 7 } 8 9 human.prototype.toSleep=f
阅读全文
posted @ 2016-01-28 14:47 ^^-^^-
阅读(227)
评论(0)
推荐(0)
公告