window与Objet1、 window.proto === Window.prototype2、 window.proto.proto === 窗口属性(WindowProperties)3、 window.proto.proto.proto === EventTarget.prototype4、 EventTarget.prototype.proto === Object.prototype5、 Event.prototype.proto === Object.prototypedocument与Objet1、 document.proto === HTMLDocument.prototype2、 HTMLDocument.prototype.proto === Document.prototype3、 Document.prototype.proto === Node.prototype4、 Node.prototype.proto === EventTarget.prototype5、 EventTarget.prototype.proto === Object.prototype元素节点与Objetvar h = getElementById(‘id’);1、 h.proto === HTMLDivElement.prototype2、 HTMLDivElement.prototype.proto === HTMLElement.prototype3、 HTMLElement.prototype.proto === Element.prototype4、 Element.prototype.proto === Node.prototype5、 Node.prototype.proto === EventTarget.prototype6、 EventTarget.prototype.proto === Object.prototype属性节点与Objetvar attr = h. attributes[0];1、 h.attributes.proto === NamedNodeMap.prototype2、 NamedNodeMap.prototype.proto=== Object.prototype1、 h.attributes[0].proto === Attr.prototype2、 Attr.prototype.proto === Node.prototype3、 Node.prototype.proto === EventTarget.prototype 4、 EventTarget.prototype.proto === Object.prototype属性获取与赋值1、 h.id === h.attributes.id.value === h.attributes[n].value2、 h.className === h.attributes.class.value === h.attributes[n].valuedom对象api扩展1、DocumentDocument.prototype.aa = function(){console.log(1)}document.aa(); //1document.getElementById(‘id’).aa(); // Uncaught TypeError: h.aa is not a function2、ElementElement.prototype.bb = function(){console.log(1)}document.bb(); // Uncaught TypeError: document.bb is not a functiondocument.getElementById(‘id’).bb(); // 13、ObjectObject.prototype.cc = function(){console.log(1)}document.cc(); //1document.getElementById(‘id’).cc(); // 1