先列一下用到的相关资源和信息,后面再看实际例子。
认识ES6:
es6中类的使用:https://www.jianshu.com/p/5d34a308d012
ES5 与 ES6 转换简析(以 class 和 extends 为例):https://blog.csdn.net/weixin_44135121/article/details/87934758
babel ES6 转换 ES5 实现原理:https://blog.csdn.net/weixin_44135121/article/details/104161852
简述 AST 抽象语法树:https://blog.csdn.net/weixin_44135121/article/details/104161823
工具集:
JavaScript参考手册:https://www.runoob.com/jsref/jsref-tutorial.html
JavaScript在线运行工具:https://www.runoob.com/try/try.php?filename=tryjs_write
npm官网,查询包:https://www.npmjs.com/
语法树astexplorer:https://astexplorer.net/
babel示范,查看es5和es6的转化:https://babeljs.io/repl
AntDesign官网:https://3x.ant.design/components/button-cn/
在线CDN:https://www.bootcdn.cn/
JavaScript格式化:https://tool.ip138.com/javascript/
JSON格式化:
http://www.jsons.cn/jsoncheck/
Unicode编码转换: