1.Vue 限制input输入数字 不可小数
<el-input class="input-sort" onkeyup="this.value = this.value.replace(/[^\d]/g,'');" placeholder="请输入" v-model.trim="scope.row.amount" clearable></el-input>或<el-input class="input-sort" oninput="this.value=this.value.replace(/\D/g,'')" placeholder="请输入" v-model.trim="scope.row.amount" clearable></el-input>
2.vue 限制输入框只能输入数字和字母,不能有特殊符号
onkeyup="this.value = this.value.replace(/[^A-z0-9]/, '')"