咏竹莉
where there is a will,there is a way
posts - 132,comments - 1,views - 66816
11 2023 档案
Array 方法之at()方法
摘要:at() 方法接收一个整数值并返回该索引的项目,允许正数和负数,正数是从头开始索引,负数是丛尾开始索引 找不到就返回undefined 1. const array1 = [5,12,8,130,44]; console.log(array1.at(2)); // 8 索引从0开始 console. 阅读全文
posted @ 2023-11-07 09:43 咏竹莉 阅读(90) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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