冷艳小猫咪

文章
6
资源
0
加入时间
4年1月24天

【前端基础】ES6模块与单例模式

使用type=“module"属性的<script>html标签会告诉浏览器相关执行的代码是模块代码。模块代码可以直接嵌入在网页中,也可以作为外部文件引入:<script type="module"> // 模块代码</script><!-- 或者 --><script type="module" src="pa