對DOM的理解還很粗淺。HTMLDocument應該是一個建構式,根據原型繼承,這些都沒問題:
HTMLDocument.constructor == Function //true
HTMLDocument.prototype == document.__proto__ //true
HTMLDocument == document.constructor //true
咋的這個就是false了呢?
HTMLDocument.__proto__==Function.prototype // false
畢竟一般性的建構式的原型都指向Function.prototype的吧:
function Foo(){};
Foo.__proto__==Function.prototype; //true
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/279136.html
標籤:JavaScript
上一篇:npm安裝埠問題
