会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
315467
博客园
首页
新随笔
联系
订阅
管理
2017年11月18日
JavaScript难点系列(六):原型链与继承
摘要: 类和构造函数 JS中使用构造函数来定义类: function Range(from, to) { this.from = from this.to = to } Range.prototype.includes = function(x) { return this,from
阅读全文
posted @ 2017-11-18 20:35 Q-Zhan
阅读(273)
评论(0)
推荐(0)
编辑
公告