如何在html中使用 es6语法让浏览器识别

1.引入两个 文件 browser.min.js 和 polyfill.min.js 2.在script标签中添加 type="text/babel" 这个属性,例如:<script  type="text/babel"></script> 貌似只能使用一些常规的es6语法,模块化(import、export)这种不能用   如何让html识别import和export语法呢?es6模块化语法只能
相关文章
相关标签/搜索