Validation of input input boxes for non-form forms

problem description

I see that most of the validation of the input input box is limited to the submission of the form form. What if I simply validate the input input box? Validate non-null and input as numbers

related codes

 <td><i-input v-model="item.stkCode" size="small" placeholder=""/></td>


Sep.08,2021

if (! item.stkCode) {

console.log('...')
return

}
if (! / D/.test (item.stkCode)) {

console.log('...')
return

}

Menu