JS High Set Note 1-2 Chapter

Source: Internet
Author: User

1,js is a scripting language made up of ECMAScript, Dom, and BOM designed to interact with Web pages. JS is one of the scripting languages.

2,mime, which is a type of file that sets an extension, is opened using an application, and when the extension file is accessed, the browser automatically opens with the specified application. Many are used to specify some client-customized file names, as well as some ways to open media files.

3, external files, placed in the head of the external file, will first explain JS after the body content, in the case of JS many times, in order not to let users wait and now generally will put JS into the body content finally . (P12)

Defer (deferred script): Runs the script after the entire page has been interpreted. (First-page script) (P13)

Async (Asynchronous script): download files now, but not in order, the current script does not have to wait for other scripts.

,<script> is executed sequentially when defer and async are not used .

JS High Set Note 1-2 Chapter

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.