会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
赛德·乌漆嘛黑
博客园
首页
新随笔
联系
订阅
管理
2021年1月28日
Sort
摘要: sort进行排序 var arr = [100,50,90,30,80]; function sortNum (a,b){ console.log(a); console.log(b); return a-b } console.log(arr.sort(sortNum)); a-b 是升序 b-a
阅读全文
posted @ 2021-01-28 17:50 赛德·乌漆嘛黑
阅读(114)
评论(0)
推荐(0)
编辑
公告