[英]How can I access a folder or file in parent folder JavaScript?
I have a web page( index.hmtl
), which has links to go to pages in the page
folder. 我有一个网页(
index.hmtl
),该网页具有指向page
文件夹中页面的链接。 How can I link back the main page from the a webpage in the page
folder? 如何从
page
文件夹中的网页链接回page
?
File tree: 文件树:
/www
index.html
/pages
pageA.html
pageB.hmtl
Thanks. 谢谢。
您可以使用../
访问相对的父文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.