摘要: 1:let s = 'string' s.codePointAt() // 返回字符串的码点(是十进制值,可用toString(16)转成十六进制值) 2: String.fromCodePoint() 将码点转化成对应字符 3:字符串可以遍历,传统的for循环循环不出4字节的字符。可用for of 阅读全文
posted @ 2017-12-21 21:35 王玮-web 阅读(102) 评论(0) 推荐(0) 编辑