项目需求:使用ios设备进行测试时,发现验证码自动填充时会填充两遍
解决办法:
input的type=“text” 或 type=“password”时,则给input加上maxlength属性,让最大长度等于验证码的位数
<input
class="account-input"
:placeholder="pageJson.code"
type="text"
maxlength="6"
v-model="codeInputRegister"
/>