es6 and typescript

compile工具

ES6

const config = { entry: "./src/main.js", output: { filename: "bundle.js", path: path.resolve(__dirname, 'dist') }, module: { rules: [ { test: /.js$/, exclude: /node_modules/, loader: "babel-loader", options: [ presets: ["env"] ] } ] } }

typescript

promise怎么写

继承怎么写

其他异同

运行命令

vi /etc/profile

在文件的最后添加上:
export PATH="/你要的目录:$PATH"

保存和退出

最重要的是下面这步,运行命令

source /etc/profile
没报错则成功

原文地址:https://www.cnblogs.com/connie313/p/10847686.html