摘要: 1.交换两个变量而没有第三个 let x = 1;let y = 2;[x, y] = [y, x];console.log(x, y); 输出: 2 1 2、将数字转换为字符串 const num = 1 +“”;console.log(typeof num); console.log(num); 阅读全文
posted @ 2021-09-18 09:57 喆星高照 阅读(46) 评论(0) 推荐(0) 编辑