Source code of implementation JavaScript internal methods
问题 Is there a way to see the code behind a JavaScript's method? Not a javascript method from the website's .html or .js files, but JavaScript's internal methods. For example: How can I see how JavaScript calculates the offsetTop of an element? 回答1: JavaScript is implemented by the browser, so it depends on the browser . Google's browser, Chrome , is closed-source not open-source. Which means that you can't view their source code, including their implementation of JavaScript. But , Chrome's