javascript-tutorial / javascript-tutorial/en.javascript.info
clarification: imports from path/to/module !?
未关闭
- 主要语言
- HTML
- 星标
- 25.5k
- 派生
- 4k
- PR 合并指标
- 30 天内没有已合并 PR
描述
In the summary of the [import-export chapter](https://javascript.info/import-export#summary) they use `... from "module"`.
Wouldn't it be more correct to write `... from "path/to/module"` or something like that?
Isn't that the essential point of `export`/`import ... from ...` - that it requires a relative/absolute path and not just a file name?!
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 import-export 章节中链接的 Summary 部分开始,将其中的 `... from "module"` 示例与该章节对模块路径的说明进行比较。完成的标准是:Summary 准确澄清导入是否需要相对路径或绝对路径,且不与周围的教程内容矛盾。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100