JavaScript 只允许输入数字 <input type=”text” name=”price” onkeyup=”javascript:this.value=this.value.replace(/\D/g,”);” /> 2016年11月25日