On the compatibility of input input box of oppoR9s mobile phone

in the input password box on the oppoR9s phone, how to restrict input to alphanumeric values,

     <input type="number" pattern="[0-9]*"  oninput="if(value.length > 11)value = value.slice(0, 11)" placeholder="()">

at present, other mobile phones can be used like this, but oppo phones can"t. Which boss knows the solution? thank you very much

.

use this maxlength attribute to try < input type= "number" maxlength= "5" placeholder= "Please enter your mobile phone number (which will be used as a login account)" >


finally use watch to monitor

implemented by value.
Menu