Home > Article > Web Front-end > Is a dom object a javascript object?
The dom object is a JavaScript object; dom is the document object model, which is the programming interface for HTML and XML documents. JavaScript operates HTML documents through the intermediate document object model. The classes of DOM objects are some special, used A less frequent JavaScript class used to simulate the structure of HTML documents.
The operating environment of this tutorial: Windows 10 system, JavaScript version 1.8.5, Dell G3 computer.
The DOM object is a JavaScript object.
DOM (Document Object Model) document object model, which is the programming interface for HTML and XML documents. JS operates HTML documents by relying on the intermediate medium: the document object model. The classes of DOM objects are some special JS classes that are used less frequently and are used to simulate the structure of HTML documents.
Dom Object
The Document Object Model, referred to as DOM, is a standard programming interface for processing extensible markup languages recommended by the W3C organization.
DOM is actually a document model described in an object-oriented manner. The DOM defines the objects required to represent and modify a document, the behaviors and properties of these objects, and the relationships between these objects.
Through the DOM, you can access all HTML elements, along with the text and attributes they contain. The content can be modified and deleted, and new elements can also be created.
DOM is platform and programming language independent. It can be used by any programming language such as Java, JavaScript and VBScript.
DOM object is the object we obtain using traditional methods (javascript).
DOM is precisely a specification standard for document objects (Document Object Model). The standard only defines properties and method behaviors.
JavaScript Objects
JavaScript provides multiple built-in objects, such as String, Date, Array, etc.
Objects are just special data types with properties and methods.
The DOM object obtained through js is the js object
When the browser supports the dom interface (api) of js, the narrow sense of dom here The object appears in the form of a js object, that is, a js object.
jQuery object
Overview
The jQuery object is actually a JavaScript array. This array object contains 125 methods and 4 attributes
The 4 attributes are:
jquery The current jquery framework version number
length indicates the array The number of elements of the object.
context generally points to the HtmlDocument object.
selector The content of the selector passed in
【Related recommendations: javascript video tutorial, web front-end】
The above is the detailed content of Is a dom object a javascript object?. For more information, please follow other related articles on the PHP Chinese website!