1. 程式人生 > >inpuy只能輸入數字,並且禁止輸入e

inpuy只能輸入數字,並且禁止輸入e

key readonly after div code 只能輸入數字 -i count his

<el-input type="number" onkeyup="this.value=this.value.replace(/[^\d]/g,‘‘)" onafterpaste="this.value=this.value.replace(/[^\d]/g,‘‘) "  value="1"
                     v-if="diaTitle == ‘新增‘" :readonly="isModify" v-model="diaInfo.accountKey" />
              <span v-else>{{diaInfo.accountKey}}</
span>

inpuy只能輸入數字,並且禁止輸入e