0503_es6 Build es6 environment

First create a project directory of the project, and create two folders under the directory: src and dist

  • src: The folder where ES6 code is written, and the js programs written are placed here.
  • dist: The folder of ES5 code compiled with Babel, the js file here when the HTML page needs to be imported

Write index.html:

After the folder is established, we create a new index.html file.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325227089&siteId=291194637