Regarding the event.keyCode value, after being converted with String.fromCharCode, the decimal point becomes a strange character! !

  node.js, question

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.
Win7,Chrome/51
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 “.”