简体   繁体   English

{[native code]}在WebKit的Inspector中是什么意思?

[英]What does { [native code] } mean in WebKit's Inspector?

For instance, open up a JS console, and type toString<Enter> . 例如,打开一个JS控制台,然后键入toString<Enter>

You'll get this: 您将获得:

function toString() { [native code] }

Contrast this with: 将此与:

function foo() { return 'bar'; }
foo

which produces: 产生:

function foo() { return 'bar'; }

Does it mean that its an API to the interpreter which directly executes some internal routines in C or whatever is used to program it when that method is called? 这是否意味着它是解释器的API,该解释器直接在C中执行一些内部例程,或者在调用该方法时使用了用于对其进行编程的任何方法?

[native code]只是一个标签,指示功能主体的实现细节由浏览器“本地”处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM