摘要: 这里有几种方法可以截取数组: 使用slice方法: let arr = [1, 2, 3, 4, 5]; let part = arr.slice(0, 3); // 从索引0开始,到索引3结束但不包含索引3,即截取前3个元素 console.log(part); // [1, 2, 3] 使用su 阅读全文
posted @ 2024-02-27 15:09 阿灿呀 阅读(6767) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/2202883/202402/2202883-20240227114211090-1072474836.png) 阅读全文
posted @ 2024-02-27 11:42 阿灿呀 阅读(12) 评论(0) 推荐(0)
摘要: Emoji与Unicode、UTF8 Emoji是一种特殊的字符,而不是像QQ表情一样的普通字符的转义表示。在Unicode编码中,占用了U+1F300到U+1F64F中的部分范围。 Emoji字符的特殊之处在于,其使用的Unicode字符超出了通常使用的三字节UTF-8编码的Unicode范围,即 阅读全文
posted @ 2024-02-27 08:45 阿灿呀 阅读(1157) 评论(0) 推荐(0)