初探JavaScript 面向对象(推荐) 类的声明 1 构造函数 function Animal() { this name = name } 实例化 new Animal() 2 ES6 c JavaScript 2022-04-11 42 点赞 0 评论 63 浏览