How can I convert a character to its ASCII code using JavaScript?
(如何使用JavaScript将字符转换为ASCII码?)
For example:
(例如:)
get 10 from "\n". (从“ \ n”获得10。)
get 10 from "\n".
(从“ \ n”获得10。)
" ".charCodeAt(0);
2.1m questions
2.1m answers
60 comments
57.0k users