其他输入框只需要加 readonly
<input class="tel_area input" readonly v-model="phone" placeholder="请输入手机号" type="tel"/>
<input class="code_area input" readonly v-model="code" placeholder="请输入验证码" type="text"/>
在360浏览器测试时密码框比较顽固 需要先设置为text,在输入时将input属性改回password ,并不会中断输入;
<input id="password_input_hide" class="password_area input" readonly v-model="password" placeholder="请输入密码" :type="is_input?'password':'text'" @input="openType()"/>
data: {
is_input:false,
},
methods: {
openType:function () {
this.is_input=true;
}
}
标签:function,搜狗,输入框,readonly,input,360 From: https://www.cnblogs.com/dy-gf/p/16892919.html
//监测输入框点击
$('.input').on('click', function (event) {
$('.input').removeAttr("readonly");
})