谷歌V8如何处理javascript事件

时间:2021-04-29 21:39:25

I am trying to understand Google V8 javascript engine, I went through https://developers.google.com/v8/get_started which lets javascript code be understood and executed. I am not getting how the events in javascript like Mouse click, Mouse over etc are interpreted by V8. I came across Nodejs Event Loop and this http://html5tv.rot13.org/JSConf.eu-Node.js.html , where later is the event loop for node.js can any point to something which can me a clear picture

我正在尝试了解Google V8 javascript引擎,我浏览了https://developers.google.com/v8/get_started,它可以让javascript代码被理解和执行。我不知道如何通过V8解释鼠标点击,鼠标等等javascript中的事件。我遇到了Nodejs事件循环和这个http://html5tv.rot13.org/JSConf.eu-Node.js.html,后来是node.js的事件循环可以任意指向一些可以让我清晰的图片

1 个解决方案

#1


1  

Javascript has no such things as events.

Javascript没有事件这样的东西。

Stuff like mouse events in the browser are given by the browser DOM, not Javascript. In Google Chrome for example they are implemented in WebKit/Blink

浏览器中的鼠标事件之类的东西由浏览器DOM提供,而不是Javascript。例如,在Google Chrome中,它们是在WebKit / Blink中实现的

#1


1  

Javascript has no such things as events.

Javascript没有事件这样的东西。

Stuff like mouse events in the browser are given by the browser DOM, not Javascript. In Google Chrome for example they are implemented in WebKit/Blink

浏览器中的鼠标事件之类的东西由浏览器DOM提供,而不是Javascript。例如,在Google Chrome中,它们是在WebKit / Blink中实现的