验证输入内容是否为数字的简单方法 <input name="v_amount" type=text value="0.01" onkeyup="if(isNaN(value))execCommand('undo')"> 分享到: