![](/img/trans.png)
[英]How to read files from a folder and its subfolder and write into a JSON file?
[英]accessing a file in the root folder from a subfolder
我的文件夹结构如下:
sample/register
我在sample
文件夹中有一个名为index.html
的文件。我想从register
文件夹中的文件重定向到此文件。我该怎么做? 这就是我所做的。但是问题是我在名为index.html
register
文件夹中有一个文件,并且该文件被重定向到该文件夹。我该如何提及根文件夹?
<li><a id="register" href="index.html">Back</a></li>
取决于您的根文件夹在哪里, href="/index.html"
可能起作用,或者仅使用href="../index.html"
在一个文件夹中向上移动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.