JavaScript 事件序列

发布于 2024-08-18 08:42:36 字数 206 浏览 4 评论 0原文

JavaScript 中的某些事件先于其他事件触发。例如,对于输入元素,首先触发 keydown 和 keypress 事件。然后,如果这些返回值不为 false,则更新 input.value。然后,将触发 keyup 事件。

是否有一个网站可以找到所有事件及其执行顺序的完整列表,以及其间发生的其他事情,例如更新我的示例中输入框中的值?

这样的列表将非常有帮助。

Some events in JavaScript fire before others. For example, with an input element, the keydown and keypress events fire first. Then, if the return value from those was not false, the input.value is updated. Then, the keyup event fires.

Is there a web site where I can find a comprehensive list of all events and the order in which they are executed, as well as other things that take place in between, such as updating the value in the input box in my example?

Such a list would be extremely helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最后的乘客 2024-08-25 08:42:36

对于关键事件,以下是一个很好的资源: http://unixpapa.com/js/key.html< /a>.同一站点上还有一个鼠标事件页面 http://unixpapa.com/js/mouse.html 我没有使用过,但我认为基于关键事件页面很有用。

For key events, the following is an excellent resource: http://unixpapa.com/js/key.html. There's also a page for mouse events on the same site at http://unixpapa.com/js/mouse.html that I haven't used, but I imagine is useful based on the key events page.

随风而去 2024-08-25 08:42:36

我知道一个很好的德语网站,也有法语版本,我希望这有帮助:

http:// /de.selfhtml.org/javascript/sprache/eventhandler.htm

I know a good german web site, also available in French I hope this helps:

http://de.selfhtml.org/javascript/sprache/eventhandler.htm

水溶 2024-08-25 08:42:36

W3C - 文档对象模型事件 - 但一如既往...某些浏览器并不支持所有内容。

W3C - Document Object Model Events - but as always... some browsers doesn't support everything.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文