什么是“ [原生代码]"意思? [英] What does " [native code] " mean?
本文介绍了什么是“ [原生代码]"意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图调查jQuery代码,所以我使用了这个:
I tried to investigate the jQuery code, so I used this:
document.write($.constructor);
我得到了这个结果:
function Function() { [native code] }
[本地代码] $ c是什么$ c>是什么意思?为什么我看不到真正的代码?
What does [native code]
mean? Why can't I see the real code?
使用 Google-Chrome进行测试
推荐答案
$
, jQuery
只是一个功能。没有调用它,它只是一个普通的功能。函数的构造函数是 Function
,因此 $。constructor
显示 [native code]
。
$
, jQuery
is just a function. Without invoking it, it's just an ordinary function. A function's constructor is Function
, hence $.constructor
shows [native code]
.
这篇关于什么是“ [原生代码]"意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文