2013-05-29 53 views

回答

1

不确定为什么它不在Ruby文档中,但在C#和Java的文档中,这里是如何定义active elementSource here

the element that currently has the focus, or the body element if no element with focus can be detected. 

Java source进一步说

This matches the semantics of calling "document.activeElement" in Javascript. 
+0

感谢指向文档! – TDHM