JQuery 设置 input 自动获取焦点的方法 主机之家测评 技术 2年前 (2020-07-06) 4 0 JQuery 中使用 focus()方法设置 input 焦点,代码如下: $('#id').focus();