摘要: js创建类 1. 使用`function`关键字创建类 ``` function test(para){ this.para = para; this.route; var p = 100; // 私有属性只能在内部使用 this.add = function(){ console.log(para 阅读全文
posted @ 2019-11-29 11:01 allOfme 阅读(459) 评论(0) 推荐(0)