常用ASCII码表 与keycode吗有什么区别和联系?
发布网友
发布时间:2022-05-25 21:45
我来回答
共2个回答
热心网友
时间:2024-12-04 20:54
判断输入字符要用对应的ASCII码,判断按哪个键就要用keycode了。
比如a和A两个字符,ASCII码不一样,分别为65,97,但都是按键盘上的A键输出来的,keycode就一样。
热心网友
时间:2024-12-04 20:54
Specifies the Unicode key code associated with the key that caused the event. This property is intended to be used with the onkeydown, onkeyup, and onkeypress events.
American Standard Code for Information Exchange (ASCII)
A coding scheme using 7 or 8 bits that assigns numeric values to up to 256 characters, including letters, numerals, punctuation marks, control characters, and other symbols.