Files
2018-10-16 21:32:40 +05:30

490 B
Raw Blame History

title, localeTitle
title localeTitle
Use export to Reuse a Code Block 使用export重用代码块

使用export重用代码块

我们学习了如何从另一个文件导入内容。但是有一个问题。您只能导入从该其他文件导出的文件。

你在这里的任务是导出foobar

提示1

只需在他们面前添加出口!

剧透警报 - 提前解决!

"use strict"; 
 export const foo = "bar"; 
 export const bar = "foo";