var a=document.getElementById("2"); a.focus(); alert(document.hasFocus());//这行只能这么写,document.hasFocus()
posted on 2016-09-14 16:03 Kooing 阅读(112) 评论(0) 编辑 收藏 举报