當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
JS显示document里所有的成员
生活随笔
收集整理的這篇文章主要介紹了
JS显示document里所有的成员
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
《script》 for (x in window.document) document.write(x+"《/br》"); 《/script》
顯示結果: vlinkColor linkColor alinkColor fgColor bgColor activeElement compatMode designMode dir all scripts plugins embeds webkitFullscreenElement webkitFullscreenEnabled webkitCurrentFullScreenElement webkitFullScreenKeyboardInputAllowed webkitIsFullScreen childElementCount lastElementChild firstElementChild children currentScript webkitHidden webkitVisibilityState webkitPointerLockElement selectedStylesheetSet preferredStylesheetSet characterSet readyState defaultCharset charset location lastModified anchors forms links applets images head body cookie URL domain referrer title styleSheets defaultView documentURI xmlStandalone xmlVersion xmlEncoding inputEncoding documentElement implementation doctype parentElement textContent baseURI localName prefix namespaceURI ownerDocument nextSibling previousSibling lastChild firstChild childNodes parentNode nodeType nodeValue nodeName open close write writeln clear captureEvents releaseEvents hasFocus createElement_x createDocumentFragment createTextNode createComment createCDATASection createProcessingInstruction createAttribute getElementsByTagName importNode createElement_xNS createAttributeNS getElementsByTagNameNS getElementById createEvent createRange createNodeIterator createTreeWalker execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue getElementsByName elementFromPoint caretRangeFromPoint getSelection getCSSCanvasContext getElementsByClassName querySelector querySelectorAll webkitExitPointerLock evaluate adoptNode getOverrideStyle webkitCancelFullScreen webkitExitFullscreen c r e a t e E x p r e?s s io n createNSResolver insertBefore replaceChild removeChild hasChildNodes cloneNode normalize isSupported lookupPrefix isDefaultNamespace lookupNamespaceURI ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_PRECEDING DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC isSameNode isEqualNode compareDocumentPosition contains addEventListener removeEventListener dispatchEvent 《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀
顯示結果: vlinkColor linkColor alinkColor fgColor bgColor activeElement compatMode designMode dir all scripts plugins embeds webkitFullscreenElement webkitFullscreenEnabled webkitCurrentFullScreenElement webkitFullScreenKeyboardInputAllowed webkitIsFullScreen childElementCount lastElementChild firstElementChild children currentScript webkitHidden webkitVisibilityState webkitPointerLockElement selectedStylesheetSet preferredStylesheetSet characterSet readyState defaultCharset charset location lastModified anchors forms links applets images head body cookie URL domain referrer title styleSheets defaultView documentURI xmlStandalone xmlVersion xmlEncoding inputEncoding documentElement implementation doctype parentElement textContent baseURI localName prefix namespaceURI ownerDocument nextSibling previousSibling lastChild firstChild childNodes parentNode nodeType nodeValue nodeName open close write writeln clear captureEvents releaseEvents hasFocus createElement_x createDocumentFragment createTextNode createComment createCDATASection createProcessingInstruction createAttribute getElementsByTagName importNode createElement_xNS createAttributeNS getElementsByTagNameNS getElementById createEvent createRange createNodeIterator createTreeWalker execCommand queryCommandEnabled queryCommandIndeterm queryCommandState queryCommandSupported queryCommandValue getElementsByName elementFromPoint caretRangeFromPoint getSelection getCSSCanvasContext getElementsByClassName querySelector querySelectorAll webkitExitPointerLock evaluate adoptNode getOverrideStyle webkitCancelFullScreen webkitExitFullscreen c r e a t e E x p r e?s s io n createNSResolver insertBefore replaceChild removeChild hasChildNodes cloneNode normalize isSupported lookupPrefix isDefaultNamespace lookupNamespaceURI ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE DOCUMENT_POSITION_DISCONNECTED DOCUMENT_POSITION_PRECEDING DOCUMENT_POSITION_FOLLOWING DOCUMENT_POSITION_CONTAINS DOCUMENT_POSITION_CONTAINED_BY DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC isSameNode isEqualNode compareDocumentPosition contains addEventListener removeEventListener dispatchEvent 《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀
總結
以上是生活随笔為你收集整理的JS显示document里所有的成员的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: js 对表格的动态操作(动态添加行,删除
- 下一篇: JavaScript window.do