摘要: 一、类与实例: 1、类的声明: /*类的声明*/ function Animal1(){ this.name = 'name'; } /*ES6中 calss 的声明*/ class Animal2{ constructor(){ this.name = name; } } 2、生成实例: cons 阅读全文
posted @ 2020-02-29 09:44 yiyi111 阅读(253) 评论(0) 推荐(0) 编辑