摘要: // 1:交换变量的值 let a = 1; let b = 2; console.log(a,b); [a,b] = [b,a]; console.log(a,b) // 2:函数返回多个值 function fn (){ return [1,2,3] } let [a,b,c] = fn() c 阅读全文
posted @ 2017-12-17 23:16 王玮-web 阅读(133) 评论(0) 推荐(0) 编辑