12 2021 档案

摘要:语法介绍 阅读全文
posted @ 2021-12-18 15:21 蜘蛛流 阅读(5) 评论(0) 推荐(0) 编辑
摘要:####sort()方法会改变原始数组 sort()方法不传参数时,默认是对数组的元素作为字符串进行升序排序。 数组元素是字母字符串时,正常按升序排列 const arr = ["Banana", "Orange", "Apple", "Mango"] arr.sort() console.log( 阅读全文
posted @ 2021-12-18 14:30 蜘蛛流 阅读(498) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示