js优雅地将两个变量的值进行交换

100 阅读1分钟
    let a = 0;
    let b = 1;
    [a,b] = [b,a]
    console.log(a,b)