摘要: 常规写法 let arr = [1,2,3]; let a = arr[0]; let b = arr[1]; let c = arr[2]; console.log(a,b,c); 数组解构 解构表达式写法 let arr = [1,2,3]; let [a,b,c] = arr; console 阅读全文
posted @ 2022-09-20 14:51 Samuel-Leung 阅读(162) 评论(0) 推荐(0) 编辑