setTimeout(function () {
var onFocus = document.querySelector('#form-username');
onFocus.focus();
},500)
页面刚加载进来或刷新后,光标显示在某个Input输入框中
于 2019-10-14 09:44:42 首次发布
setTimeout(function () {
var onFocus = document.querySelector('#form-username');
onFocus.focus();
},500)