会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Liu Wango
There is no birth of consciousness without pain.
博客园
首页
新随笔
联系
订阅
管理
2020年11月24日
第8章 控制对象的访问(setter、getter、proxy)
摘要: 1. 使用getter和setter控制属性访问 1.1 定义getter与setter 通过对象字面量定义,或在ES6的class中定义 // 通过对象字面量定义 const students = { student: ["Wango", "Lily", "Jack"], // 使用set和get
阅读全文
posted @ 2020-11-24 20:20 LiuWango
阅读(368)
评论(0)
推荐(0)
公告