会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
喆星高照
博客园
首页
新随笔
联系
订阅
管理
2021年9月18日
js简单化技巧
摘要: 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)
编辑
公告