zl程序教程

您现在的位置是:首页 >  其它

当前栏目

使 input 获取焦点,获取光标

获取 input 焦点 光标
2023-09-11 14:14:50 时间
 <input type="text" id="Name" >

js 代码

document.querySelector("#Name").focus();