ynchuan / blog

https://github.com/ynchuan/blog/issues
http://ynchuan.github.io/blog
0 stars 0 forks source link

算法&原理 #24

Open ynchuan opened 5 years ago

ynchuan commented 5 years ago
ynchuan commented 5 years ago
ynchuan commented 5 years ago

javascript文件存储及传输时是utf8编码,在文件被识别时是通过utf8解码识别的; 当javacript在运行时,内部的字符运算是ucs2编码,参考; 码点是unicode编码,ucs2(utf-16)为存储编码