让input一直保持焦点

只需要在input失去焦点事件中再次添加焦点就可以保证永永远不失去焦点了
例如vue中

<input @blur="e => e.target.focus()" />
完结~
原文地址:https://www.cnblogs.com/lwlblog/p/15650559.html