Bij*_*pil 4 javascript dom
如何聚焦动态创建的元素?
Nic*_*ver 8
只需.focus()在将元素添加到DOM后调用该元素,例如:
.focus()
var input = document.createElement("input"); //create it document.body.appendChild(input); //append it input.focus(); //focus it
你可以在这里测试一下.
归档时间:
15 年,3 月 前
查看次数:
3641 次
最近记录:
8 年,4 月 前