首页 > TAG信息列表 > keyPressFunction
使用Keypress限制Input
const within = (keyCode) => { // Backspace 8, Tab 9, const specialKeys = [8, 9]; return ( (keyCode >= 48 && keyCode <= 57) || (keyCode >= 65 && keyCode <= 90) || (keyCode >= 97 && keyCode <使用Keypress限制Input
const within = (keyCode) => { // Backspace 8, Tab 9, const specialKeys = [8, 9]; return ( (keyCode >= 48 && keyCode <= 57) || (keyCode >= 65 && keyCode <= 90) || (keyCode >= 97 && keyCode <