会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Fourteen
博客园
首页
新随笔
联系
订阅
管理
2021年6月30日
const {attr} = obj
摘要: const {attr} = obj 等同于 const attr = obj.attr,是ES6用法。 //减少Cannot read property xxx of undefined 类型的错误 //万一你的obj是undefined,如果这样写const attr = obj.attr 就炸
阅读全文
posted @ 2021-06-30 16:54 Fourteen
阅读(103)
评论(0)
推荐(0)
编辑
公告