template:
<input type="text" v-model="pageIndex" @keyup="inputChange" >
JS:
Methods: { inputChange () { // input box to change the value of the this .pageIndex = the this .pageIndex.replace (/ [^ \ D] / G, '' ) } }
Other input events:
@change
@keyup
@keydown
@bul is