摘要: ①__proto__和constructor属性是对象所独有的;② prototype属性是函数所独有的。但是由于JS中函数也是一种对象,所以函数也拥有__proto__和constructor属性. 例如: function test(){} 上面的test 函数便有__proto__、proto 阅读全文
posted @ 2022-03-23 11:46 远洪 阅读(22) 评论(0) 推荐(0) 编辑