In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what document refers to in jquery". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "what document refers to in jquery"!
In jquery, document means document, representing dom element loaded in browser window, often used to represent the whole web page document object; HTML document loaded in browser will become Document object, which is part of Window object and can be accessed through "window.document".
Operating environment for this tutorial: Windows 10 system, jquery version 3.2.1, Dell G3 computer.
What does document mean in jquery?
Document means document.
Every HTML document loaded into the browser becomes a Document object.
The Document object gives us access to all elements of an HTML page from within a script (JavaScript).
Tip: The Document object is part of the Window object and can be accessed through the window.document property.
window and document, intuitively speaking, window represents the browser window, and document represents the dom element loaded in the browser window. Further, document is an attribute of window, and window is the top-level object.
$(document) means to get the entire web document object (similar to window.document).
Examples are as follows:
document.body.onclick="func()" [2] //Triggered when mouse pointer clicks on object document.body.onmouseover="func()" //Triggered when mouse pointer moves over object document.body.onmouseout="func()" //Triggered when mouse pointer moves out of object
Extended knowledge:
The HTML Document interface extends the DOM Document interface to define HTML-specific properties and methods.
Many properties and methods are HTML Collection objects (actually read-only arrays that can be indexed by arrays or names) that hold references to anchors, forms, links, and other scriptable elements.
These collection properties are derived from the DOM level 0. They have been superseded by Document.getElementsByTagName(), but are still often used because they are convenient.
Note that the write() method allows a script to insert dynamically generated content into a document as it is loaded and parsed.
At this point, I believe that everyone has a deeper understanding of "what document refers to in jquery", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.