最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - charCodeAt and fromCharCode do not return the same character - Stack Overflow

programmeradmin0浏览0评论

In theory, no matter what the input is, the output should be unchanged:

String.fromCharCode("a".charCodeAt(0));    //"a"

This makes sense because I'm just trying to get the char code of a character, and then casting it back to a character.

However when I try with this character, it breaks:

//"
发布评论

评论列表(0)

  1. 暂无评论