摘要: <script> var str = 'hello world' // 获取字符串的长度 console.log(str.length) // 获取下标为1的字符 console.log(str.charAt(1)) // 获取下标为1的字符的对应的编码 console.log(str.charCo 阅读全文
posted @ 2020-04-06 22:05 手可摘星辰。 阅读(165) 评论(0) 推荐(0) 编辑