会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李健威
博客园
首页
新随笔
联系
订阅
管理
12 2021 档案
将数组随机乱序
摘要:let arr = [1,2,3,4,5] arr.sort(() => { return 0.5 - Math.random() }) console.log(arr) // [4,2,1,3,5]
阅读全文
posted @
2021-12-28 18:06
李健威
阅读(49)
评论(0)
推荐(0)
代码对比/归并
摘要:1 <!DOCTYPE html> 2 <html lang="zh"> 3 <head> 4 <title>代码对比/归并title> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta h
阅读全文
posted @
2021-12-10 21:41
李健威
阅读(275)
评论(0)
推荐(0)
公告