JS给多个变量同时赋值

let [a, b, c] = [5, 8, 12];
console.log(a, b, c) // 5, 8, 12

 

posted @ 2021-04-07 11:20  yw3692582  阅读(5614)  评论(0编辑  收藏  举报