摘要: 字符串的17种方法。。。。。。 1.length:返回字符串的长度。 const str = "Hello, World!"; console.log(str.length); // 输出 13 2.charAt(index):返回指定索引位置的字符。 const str = "Hello, Wor 阅读全文
posted @ 2023-07-11 16:11 有只橘猫 阅读(519) 评论(0) 推荐(0) 编辑