摘要: 类和构造函数 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) 编辑