What does “./” (dot slash) refer to in terms of an HTML file path location?

前端 未结 10 1471
北海茫月
北海茫月 2020-11-22 07:17

I know ../ means go up a path, but what does ./ mean exactly?

I was recently going through a tutorial and it seems to be referring to just

10条回答
  •  清歌不尽
    2020-11-22 08:06

    .  = This location
    .. = Up a directory
    

    So, ./foo.html is just foo.html. And it is optional, but may have relevance if a script generated the path (relevance to the script that is, not how the reference works).

提交回复
热议问题