
//html
<input type="password" v-model="scannerMessage"
ref="scanTextbox" @keyup.13="scannerByUsb" @focus="stopKeyborad">
//js
stopKeyborad () {
this.$refs.scanTextbox.setAttribute('readonly', 'readonly');
setTimeout(() => {
this.$refs.scanTextbox.removeAttribute('readonly');
}, 200);
}
jQuery获取和设置input元素的值(监听input元素的值变化)
标签: input手机键盘弹出, input框, 移动端
上面是“移动端如何阻止input框获得焦点时手机键盘的弹出”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_12047.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Lime UI官网使用入口,一款基于uniapp的移动端组件库
2345安全卫士
推荐一款浏览器数据库的开源工具库——Dexie.js(JavaScript调用)
蚂蚁网官网:一个分享东亚、东北亚、南亚及东南亚地区蚂蚁的网站