var a=document.getElementById("2"); a.focus(); alert(document.hasFocus());//这行只能这么写,document.hasFocus() 相关文章: 2021-12-19 2021-12-19 2021-12-19 2021-12-19 2021-10-12 2022-12-23 2022-12-23 2022-12-23