2020年7月22日

jS技巧

摘要: https://juejin.im/post/5f12a11b6fb9a07e777eaca5 阅读全文

posted @ 2020-07-22 13:50 liuhao1992 阅读(84) 评论(0) 推荐(0) 编辑

数组排序

摘要: console.log([1, 2, 3, 4].sort((a, b) => a - b)); // [1, 2,3,4] 升序console.log([1, 2, 3, 4].sort((a, b) => b - a)); // [4,3,2,1] 降序 阅读全文

posted @ 2020-07-22 10:05 liuhao1992 阅读(78) 评论(0) 推荐(0) 编辑

导航