解构赋值

下一级嵌套数据 let { a:{b} } = obj 改写键 let { a:otherKey } = obj 默认值 let { a = [] } = obj
posted @ 2023-09-19 10:24  winyh  阅读(3)  评论(0编辑  收藏  举报