Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在chrome中找到activeelement如何做到这一点,在IE中我写了代码
document.activeElement.id
但是这个代码在 chrome 中的替换是什么
尝试使用此 jquery 代码:
$(':focus')