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
猜你喜欢
  • 2021-12-19
  • 2021-10-13
  • 2021-08-03
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案