Home
Sign Up
Sign In
推荐关注
›
Meteor
›
JSLint
-
a JavaScript code quality tool
›
jsFiddle
›
D3.js
›
WebStorm
推荐书目
›
JavaScript 权威指南第 5 版
›
Closure: The Definitive Guide
Advertisement
V2EX
›
JavaScript
为什么 document.activeElement 返回的不是当前处在聚焦状态的元素?
he2020
·
Sep 11, 2021
· 1343 views
This topic created in 1706 days ago, the information mentioned may be changed or developed.
代码在:
https://jsfiddle.net/ac8udz73/
veel
ent
代码
聚焦
1 replies
1
littleTomorrow1
Sep 11, 2021
1
改成监听 keyup 事件,打印的就是 button 了,应该是跟焦点转移的时机有关,keydown 的时候,焦点还在 input 上
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
4735 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 54ms ·
UTC 01:04
·
PVG 09:04
·
LAX 18:04
·
JFK 21:04
♥ Do have faith in what you're doing.
❯