摘要: 在JavaScript中,我们通常可以像下面的代码这样来简单地定义一个类: var sample = function() { // constructor code here } sample.prototype.func1 = function() { // func1 code here } 阅读全文
posted @ 2021-10-08 20:49 Jaxu 阅读(427) 评论(0) 推荐(0) 编辑