摘要: 1、解构赋值 let {a,b,c}={a:1,b:2,c:3} 对象这种会按照对应的属性名称(a、b、c)去右边的对象里面寻找对应的值。左边写成{c,b,a}也不影响解构。 但是 let {a,b,c} = { e:4, f:5, g:6 }这样的就不行,最后abc都是undefined,必须是相 阅读全文
posted @ 2019-04-23 21:21 smil、梵音 阅读(266) 评论(0) 推荐(0)