天天看點

input框隻能輸入正整數

<el-input v-show="scope.row.edit" onkeyup.native="value=value.replace(/^(0+)|[^\d]+/g,'')" v-model.number="scope.row.supperHighCost" @blur="edit(scope.row)" style="width: 60px"></el-input>      

不停學習,熱愛是源源不斷的動力。

繼續閱讀