随手记:el-input 限制输入正整数,el-input中加入 onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"