The value of the input input box

  1. the number of digits in the input box is controlled. When this value echoes the maximum number of digits, the input can only be deleted and the input cannot be overridden directly.
who knows what attributes the input has to control this
Feb.27,2021

doesn't understand your needs. All properties of
input are in here .


input maxlength length limits the maximum input length, like this

        <input type="text" maxlength="3" />

is mostly controlled by JS. After checking that the number of input digits reaches the specified number of digits, all inputs are ignored directly, regardless of whether it is selected or not (this state is overridden). In fact, just use JS to control the input characters. You can use maxLength to control the number of digits


Edit Vue Template . Is the event

registered in your own code?
Menu