input标签只允许输入数字 html 2016-04-13 阅读(2806) <input type="text" id="doc-ipt-pwd-2" placeholder="请输入身高" class="am-form-field am-input-sm" name="height" value="" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" > Tags: >html