摘要: 变量 let num = 123 const str = '123' console.log(num, str) 解构赋值 { let a, b, c [a, b, c = 3] = [1, 2] // 1 2 3 console.log(a, b, c) } { let a, b, arr [a, b, ...arr] = [1, 2, 4, 5, 6, ... 阅读全文
posted @ 2019-09-06 23:05 ronle 阅读(132) 评论(0) 推荐(0) 编辑