el-input只能输入正整数

onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode || event.which))) || event.which === 8"

你可能感兴趣的:(el-input只能输入正整数)