js正则表达式只包含数字和小数点<input onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCo2023-02-21JavaScript120