摘要: function f(a, b) { if (a > Math.floor(a)) return 1; if (b > Math.floor(b)) return -1; } var a = [3.222, 1.234, 3, 2.1111, 5, 7, 6]; a.sort(f); documen 阅读全文
posted @ 2021-11-21 18:21 木子欢儿 阅读(41) 评论(0) 推荐(0) 编辑