The solution to the failure of focus() on IOS

<input id='myInput'></input>
<div @click='replyComment'>点击</div>
replyComment() {
   var iosInput = document.getElementById('myInput');
   iosInput.focus();
},

不能将iosInput.focus()Encapsulated in a function and then triggered by an event, it will also be invalid

Guess you like

Origin blog.csdn.net/yuan_jlj/article/details/109640133