input框正能录入数字并且是正整数 <el-input onkeypress="return event.keyCode>=48&&event.keyCode<=57" maxlength="20" auto-complete="off" size="small"/> 转载