Table column a. es6 commonjs
The import import require
export Exports (multiple), Exports Default (1) module.exports
Loading mechanism The output is a reference to the value The input is a copy of the output value. Changes within the module do not affect this value

The CommonJS module outputs a copy of the value, and the ES6 module outputs a reference to the value. CommonJS modules are loaded at run time, and ES6 modules are compile-time output interfaces. CommonJS is a single value export, ES6 Module can export multiple CommonJS is dynamic syntax can be written in the judge, ES6 Module static syntax can only be written at the top of CommonJS this is the current Module, This in the ES6 Module is undefined