JavaScript modularization Analysis

Source: Internet
Author: User
The most direct manifestation of modularity is the require and import keywords we have written. If you look at the relevant information, you will surely encounter CommonJS, AMD, and other unfamiliar frameworks such as RequireJS and SeaJS. For example, the official website of SeaJS described itself as follows: "simple and user-friendly module definition specifications. Sea. js follows the CMD specifications. Naturally and intuitively organize code, and automatically load dependencies ......" Preface

The most direct manifestation of modularity is the require and import keywords we wrote. If you look at the relevant information, you will surely encounter CommonJS, cmd amd terms, and unfamiliar frameworks such as RequireJS and SeaJS. For example, the official website of SeaJS described itself as follows: "simple and user-friendly module definition specifications. Sea. js follows the CMD specifications. Naturally and intuitively organize code, and automatically load dependencies ......"

As a beginner at the front-end, I said it was really awesome and I couldn't understand it. According to my consistent style, I have to explain why I need something before introducing it.

JavaScript Basics

Clients should be familiar with the # import "classname" of OC, the Module of Swift, the file modifier, and the import package + class mode of Java. We are used to referencing a file as a class. However, in the Dynamic Language of JavaScript, things have some changes. For example:



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.