The property is an attribute in the DOM, an object in JavaScript, an attribute on an HTML tag, and its value can only be a string; many friends are easily confused.analyzing property and attribute based on JavaScriptThere is such a piece of code in
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories. Property is an
xCatalog [1] query [2] settings [3] Delete [4] inherit the preceding wordsFor an object, property manipulation is a topic that cannot be bypassed. Similar to the basic operation of "Delete and delete", attribute operations are divided into attribute
JavaScript all things in are objects: strings, numbers, arrays, functions ... In addition, JavaScript allows custom objects to be customized.JavaScript objectsJavaScript provides multiple built-in objects, such as String, Date, Array, and so on.
JavaScript provides functions to find substrings in strings indexof (), LastIndexOf (), search (), and replacement functions for strings replace (), which are not implemented in array object array.
In order for array to support the above method,
Difference between Property and Attribute in JavaScriptProperty and attribute are very confusing. the Chinese translation of the two words is also very similar (property: attribute, attribute: feature). However, the two are actually different things
There is no concept of class in JavaScript, so it differs from object-oriented language in object creation.The object in JS can be defined as a collection of unordered attributes. Its properties can contain basic values, objects, and functions. An
The JavaScript length character length function, we use the length function for a lot of time, because you have to have the front desk judge whether a user's username and password length is what I want to specify.
Advanced scripters often need
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories.
property
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.