摘要: 使用getter与setter控制属性访问 function Ninja() { let skillLevel; this.getSkillLevel = () => { console.log('get') return skillLevel; } this.setSkillLevel = val 阅读全文
posted @ 2020-09-22 13:17 春风自是人间客 阅读(111) 评论(0) 推荐(0) 编辑