【问题标题】:relative path to file in the outer outer folder外部外部文件夹中文件的相对路径
【发布时间】:2020-12-07 15:33:13
【问题描述】:

说我目前在 /src/components/SideBar/SideBar.js App.js里面有/src, 我想将一个模块从App.js 导入到SideBar.js, 我不知道如何定义路径, ".../App.js"doenst 工作

【问题讨论】:

  • 你试过“../../App.js”吗?

标签: javascript reactjs ecmascript-6


【解决方案1】:

返回 2 个目录 "../../App.js"

【讨论】:

    猜你喜欢
    • 2013-06-27
    • 2011-01-12
    • 1970-01-01
    • 2014-09-29
    • 2015-01-01
    • 2018-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多