ES6 modules

用法

通过 <script type="module" src="main.js" > </script> 在页面中引入包含 ES6 语法模块化代码

效果

请使用Chrome、Firefox浏览页面,在控制台查看效果或查看源代码