会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小布pro
所有的运气都是自己努力累积。
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
ES5
ES5继承问题举例实现
摘要://父类:personfunction Person(name){ this.name = name;}Person.prototype.say = function(){ console.log(this.name);}//子类:Doctorfunction Doctor(name,major){
阅读全文
posted @
2020-10-22 16:17
小布pro
阅读(91)
评论(0)
推荐(0)
公告