JS face question-----Dom operation and BOM operation

Source: Internet
Author: User

What kind of basic data structure is the topic 1:dom?

Answer: Dom is a tree-structured data structure

Topic 2:dom What are the common APIs for operations?

Answer: Gets the DOM node, as well as the property and attribute of the node. Gets the parent node that gets the child nodes. New node, delete node

Topic 3:dom What is the difference between the attribute and the property of a node

Answer: property is just a modification of the properties of a JS object. (via obox.name = xxx operation) attribute is a modification to the HTML Note property

Topic 4: How to detect the type of browser

Answer: Can be detected by detection navigator.useragent in the browser through the non-pass to detect

Topic 5: Dismantling parts of a URL

Answer: Use location.href location.protocol location.pathname location.search location.hash in location to get various parameters

JS face question-----Dom operation and BOM operation

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.