使用focus方法让光标默认停留在INPUT框

Lani ·
更新时间:2024-09-20
· 753 次阅读

<body onload="document.getElementById('inputTxt').focus()"> <input type="text" id="inputTxt" />



input框 focus 默认 input

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章