首页 > 其他 > 详细

es6 and typescript

时间:2019-05-11 10:19:09      阅读:257      评论:0      收藏:0      [点我收藏+]

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
没报错则成功

es6 and typescript

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!