<input id='myInput'></input>
<div @click='replyComment'>点击</div>
replyComment() {
var iosInput = document.getElementById('myInput');
iosInput.focus();
},
不能将iosInput.focus()
封装在函数中再由事件触发,这样也会失效
<input id='myInput'></input>
<div @click='replyComment'>点击</div>
replyComment() {
var iosInput = document.getElementById('myInput');
iosInput.focus();
},
不能将iosInput.focus()
封装在函数中再由事件触发,这样也会失效