手机端如何禁用默认键盘

只要是input类型,手机都会默认打开键盘,那么有什么办法可以禁止他打开呢?

来看代码:

<input type="text" @focus="inputNone">

inputNone() {     //禁止输入框弹出默认键盘

document.activeElement.blur();

},

猜你喜欢

转载自blog.csdn.net/fengxiaopeng74/article/details/83861979