1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

docs(module): fixed #1157

This commit is contained in:
ruanyf 2023-06-15 13:18:56 +08:00
parent 43222de51b
commit 4e40582916

View File

@ -162,6 +162,8 @@ function f() {}
export {f}; export {f};
``` ```
目前export 命令能够对外输出的就是三种接口函数FunctionsClassesvar、let、const 声明的变量Variables
另外,`export`语句输出的接口,与其对应的值是动态绑定关系,即通过该接口,可以取到模块内部实时的值。 另外,`export`语句输出的接口,与其对应的值是动态绑定关系,即通过该接口,可以取到模块内部实时的值。
```javascript ```javascript