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
import myDefault from '/modules/my-module.js'; // 很多种,这里只列出最简单的
import '/modules/my-module.js';
import myDefault, * as myModule from '/modules/my-module.js';
import myDefault, {foo, bar} from '/modules/my-module.js';
import {foo, bar} from '/modules/my-module.js';
import {foo, bar, anotherLongModuleName as short} from '/modules/my-module.js';
import {reallyReallyLongModuleExportName as shortName} from '/modules/my-module.js';
伴有参数 module。
// 默认导出和全部导出共存
// 默认导出和部分导出共存
// 默认导出的绑定名
// 全部导出,用别名代替这个模块
"*"
// 部分导出
// 导出的多个绑定名,以及用别名代替
// 导出的绑定名
// 导出的绑定赋予别名 reallyReallyLongModuleExportName as shortName
The text was updated successfully, but these errors were encountered:
No branches or pull requests
modules:Imports
BoundNames
ImportDeclaration : import ImportClause FromClause
ImportDeclaration : import ModuleSpecifier
ImportClause : import ImportedDefaultBinding, NameSpaceImport
ImportClause : import ImportedDefaultBinding, NamedImports
NamedImports : { }
ImportsList : ImportsList, ImportSpecifier
ImportSpecifier : IdentifierName as ImportedBinding
ImportEntries
ImportDeclaration : import ImportClause FromClause
ImportDeclaration : import ModuleSpecifier
ImportEntriesForModule
伴有参数 module。
ImportClause : ImportedDefaultBinding, NameSpaceImport
// 默认导出和全部导出共存
ImportClause : ImportedDefaultBinding, NamedImports
// 默认导出和部分导出共存
ImportedDefaultBinding : ImportedBinding
// 默认导出的绑定名
NameSpaceImport : * as ImportedBinding
// 全部导出,用别名代替这个模块
"*"
, [[LocalName]]: localName }NamedImports : { }
// 部分导出
ImportsList : ImportsList, ImportSpecifier
// 导出的多个绑定名,以及用别名代替
ImportSpecifier : ImportedBinding
// 导出的绑定名
ImportSpecifier : IdentifierName as ImportedBinding
ModuleRequests
ImportDeclaration : import ImportClause FromClause
ModuleSpecifier : StringLiteral
The text was updated successfully, but these errors were encountered: