javascript-tutorial / javascript-tutorial/en.javascript.info

clarification: imports from path/to/module !?

未關閉
#3,505 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。