admin管理员组

文章数量:1022777

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:

//"

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:

//"

本文标签: javascriptcharCodeAt and fromCharCode do not return the same characterStack Overflow