[英]How can I find out the native code of javascript functions?
When I type setInterval
into google chrome's developer tools it writes the following to the console 当我在谷歌浏览器的开发人员工具中输入setInterval
它将以下内容写入控制台
function setInterval() { [native code] }
How can I find out the code that should be in [native code]
? 我如何找出应该在[native code]
?
setInterval()
is implemented by the rendering engine. setInterval()
由呈现引擎实现。
In Webkit/Blink it's a call to a DOMWindow instance. 在Webkit / Blink中,它是对DOMWindow实例的调用。
The most interesting bits are in DOMTimer.cpp 最有趣的位在DOMTimer.cpp中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.