天天看点

js的__proto__、constructor和prototype属性

__proto__和constructor属性是对象所独有的;prototype属性是函数所独有的。但是由于JS中函数也是一种对象,所以函数也拥有__proto__和constructor属性。

上一篇: samba