The number is good, the decimal point keyCode is converted into such a character, how to solve it?
I don’t know what you want to do, keycode is the decimal number corresponding to the keyboard keys.
The keycode corresponding to decimal point key (SHIFT is >) is 190, and String. Fromcharcode (190) = > “”
The decimal point on the keypad corresponds to a keycode of 110. The corresponding character is “n”
After NumLock is turned off, the decimal point on the keypad corresponds to keycode of 46. The corresponding character is “.”