摘要: const testt = { bill: 500, sam: 480, roark: 501, tom: 999 }; 得到: {tom: 999, roark: 501, bill: 500, sam: 480} 方法:使用es6相关语法 sortObj(obj) { // 降序排序value值 阅读全文
posted @ 2023-12-15 10:34 岁月淡忘了谁 阅读(30) 评论(0) 推荐(0) 编辑