ECMAScript 6 语法检查插件以及格式工具

参见:https://blog.csdn.net/ixygj197875/article/details/79054055

Traceur 转码器

Google 公司的Traceur转码器,也可以将 ES6 代码转为 ES5 代码。

直接插入网页

Traceur 允许将 ES6 代码直接插入网页。首先,必须在网页头部加载 Traceur 库文件。

(目前在用这个,一个TXT文本工具即可偷偷打代码)

<script src="https://google.github.io/traceur-compiler/bin/traceur.js"></script>
<script src="https://google.github.io/traceur-compiler/bin/BrowserSystem.js"></script>
<script src="https://google.github.io/traceur-compiler/src/bootstrap.js"></script>
<script type="module">
  import './Greeter.js';
</script>

  

2.Babel

 

posted @ 2021-01-21 06:50  程序1088  阅读(133)  评论(0)    收藏  举报