摘要: 类中,static方法中的this指向类本身 theme.js class Theme { themes = [] //这个themes属于对象 static async getThemes(){ const themes = [1,2,3] this.themes = themes //this指 阅读全文
posted @ 2020-06-19 18:23 254980080 阅读(1483) 评论(0) 推荐(0) 编辑