gpt4 book ai didi

javascript - 什么是 KeyboardEvent#detail?

转载 作者:行者123 更新时间:2023-12-02 14:57:33 25 4
gpt4 key购买 nike

我还没有找到任何有关 KeyboardEvent 中的“detail”属性在 JavaScript 中的用途的信息。

参见this example然后按例如键,(逗号)。 Detail 属性的值为 0(在 Chrome 中测试)。

最佳答案

detail 属性实际上并非特定于 KeyboardEvent 对象,而是从 UIEvent 继承的。请参阅Mozilla Developer Network了解这对于特定事件类型意味着什么。

The UIEvent.detail read-only property, when non-zero, provides the current (or next, depending on the event) click count.

关于javascript - 什么是 KeyboardEvent#detail?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35682812/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com