For instance, open up a JS console, and type 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?
[native code]
只是一个标签,指示功能主体的实现细节由浏览器“本地”处理。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.