Home > WeChat Applet > WeChat Development > Detailed introduction to ecma

Detailed introduction to ecma

巴扎黑
Release: 2017-06-10 16:24:46
Original
2261 people have browsed it

JavaScript Module Specification Modularization is very common in any large application. Unlike some more traditional programming languages, JavaScript (ECMA-262 version) does not yet support native modularization. The Javascript community has made a lot of efforts to achieve the effect of "modules" in the existing running environment. There are two main popular JavaScript module specifications: CommonJS, AMD, UMD, CMD, etc. CommonJS CommonJS specification is a server-side Javascript module specification. The module system of Node.js is implemented with reference to the CommonJS specification. NPM also follows the package specifications defined by commonJS, thus forming a complete ecosystem. The modules defined by CommonJS are divided into: {module reference (require)} {module definition (exports)} {module identification (module)}. require() is used to introduce external modules; the exports object is used to export methods or variables of the current module, the only export port; module

1. Detailed examples of modularization in WeChat development

Detailed introduction to ecma

Introduction: JavaScript module specification Modularization is very common in any large application, with some Unlike more traditional programming languages, JavaScript (ECMA-262 version) does not yet support native modularity. The Javascript community has done a lot...

2. Introducing several encapsulation functions in javascript-ecma

Detailed introduction to ecma

Introduction: First, we will introduce the following methods: String method: str.length str.charAt(i): Take one of the strings; str. indexOf('e'); Find the first occurrence position; return -1 if not found; str.lastIndexOf('e'): Find the last occurrence position of e; return -1 if not found;

3. Detailed introduction to the advantages and disadvantages of JSON and XML

Detailed introduction to ecma

##Introduction: JSON (Javascript Object Notation) is a lightweight data exchange format. Easy for humans to read and write. It is also easy for machines to parse and generate. It is based on Javascript Programming Language, a subset of Standard ECMA262 3rd Edition December 1999. JSON adopts a completely language-independent text format, but also uses habits similar to the C language family (including C,...

4. ECMAScript6 Getting Started Class Object Detailed explanation of examples

Detailed introduction to ecma

Introduction: This article mainly introduces the detailed explanation of ECMAScript6 Getting Started--Class object, small The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.

##5.

Some commonly used JavaScript knowledge points.

Detailed introduction to ecma

Introduction: JavaScript is designed and implemented in accordance with the ECMAScript standard. The JavaScript syntax mentioned below is actually Implementation of ES5 standards. What are the basic syntaxes? What are the most basic syntaxes? Almost all language differences...

##6.

flv.js What is flv.js?

##Introduction: Flv.js is HTML5 Flash video (FLV ) player, developed purely in native JavaScript, without using Flash. It is open sourced by the bilibili website. It works by transcoding FLV files into ISO BMFF ( MP4 fragments) fragments, and then feed the MP4 fragments into the browser through Media Source Extensions. flv.js is written in ECMAScript 6, and then through Babel CompilerDetailed introduction to ecma

##7.

Comprehensive Understand the logical operators of javascript operators

Detailed introduction to ecma

Introduction: As mentioned above, logical operators perform Boolean operations on operands and are often used together with relational operators. Logical operators combine multiple relational expressions into a more complex expression. Logical operators are divided into three types: logical NOT '!', logical AND '&&', and logical OR '||'. This article will introduce these three logical operators. Logical NOT The logical NOT operator is represented by an exclamation point (!). Applied to ECMAScript

8. Parse JS global variables and local variables

Detailed introduction to ecma

Introduction: This kind of blind and unprincipled research and testing confused me. Is it necessary to do this? In fact, if you understand the principle, there is no need to conduct so many tests one by one, and then draw the rules. , ECMAScript rules have been defined. The rules for var are: using var to declare variables is internal variables, otherwise global variables are called first, no matter how many layers of functions. The rules for this are: th

in the method function

9. New features of HTML5: file and binary data operations

Detailed introduction to ecma

Introduction: Historically, JavaScript has been unable to handle binary data. If you must process it, you can only use the charCodeAt() method to convert text encoding into binary data byte by byte. Another way is to convert the binary data into Base64 encoding and then process it. Both methods are not only slow, but also error-prone. ECMAScript5 introduced the Blob object, allowing direct manipulation of binary data.

10. Summary of some commonly used regular expressions in JavaScript

Detailed introduction to ecma

Introduction: Regular expression (regular expression) describes a string matching pattern, which can be used to check whether a string contains a certain substring, replace the matching substring, or replace a certain string. Extract substrings that meet certain conditions, etc. var validateRegExp = {decmal: "^([+-]?)\\d*\\.\\d+$",// Floating point number decmal1: "^[1-9]\\d*.\ \d*|0.\\d*[1-9]\\d*

[Related Q&A recommendations]:

javascript - How to make the js foundation more solid?

##ecmascript - javascript process when parsing functions

javascript - The parameters of all functions in ECMAScript are Is it passed by value?

javascript - Why learn ECMAScript?

##Front-end - "Both core JavaScript and client-side JavaScript have a single Threaded execution model. "How should we understand this sentence◔ ‸◔?

The above is the detailed content of Detailed introduction to ecma. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template