摘要: 字符串方法 示例字符串: const str = "hello,kitty,hello,vue "; 一、基本方法 charAt(n) 返回指定索引的字符 charCodeAt(n) 返回指定位置字符的Unicode编码 startsWith() 判断字符串是否以xxx开头,返回布尔值 endsWi 阅读全文
posted @ 2019-08-24 20:36 学霸初养成 阅读(713) 评论(0) 推荐(0) 编辑