We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES6 的批量命名导出可以使用如下语法:
const foo = 'foo' const bar = 'bar' export { foo, bar }
注意,上面的写法并非对象的简写模式,不能扩展为如下写法:
export { foo: foo, bar: bar }
它只是模块化的一种语法形式,在其中可以使用 as 重新命名导出变量:
as
export { foo as foos, bar as baz }
The text was updated successfully, but these errors were encountered:
liuzhuan
No branches or pull requests
ES6 的批量命名导出可以使用如下语法:
注意,上面的写法并非对象的简写模式,不能扩展为如下写法:
它只是模块化的一种语法形式,在其中可以使用
as
重新命名导出变量:The text was updated successfully, but these errors were encountered: