会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
一只松鼠
博客园
首页
新随笔
联系
订阅
管理
2019年11月29日
class关键字
摘要: class关键字创建 在class中使用extends关键字实现继承 语法:class子类extends父类{ } //父类 可以看作其他子类共有的属性,也可以看作是构造函数中的 原型对象 class Person{ constructor(name,age){ this.name=name thi
阅读全文
posted @ 2019-11-29 16:02 奔走的松鼠
阅读(338)
评论(0)
推荐(0)
编辑
公告