摘要: 一、类的声明和实例化 1.类的声明 //声明var cat=function(){ this.name='aha'; }; console.log(cat); //Es6中的声明class cat1{ constructor() { this.name='cat2'; } } console.log 阅读全文
posted @ 2021-10-02 09:35 陌菡 阅读(62) 评论(0) 推荐(0)