Is there any difference between ./ and / in <script> src attribute? [duplicate]
问题 This question already has answers here : What does “./” (dot slash) refer to in terms of an HTML file path location? (10 answers) Closed 8 months ago . Given the following project structure: /root /static script.js page.html This will ' import ' script.js , into the HTML file: <html> <head> <script src="/static/script.js"></script> </head> <body> ... </body> </html> this will, as well: <html> <head> <script src="./static/script.js"></script> </head> <body> ... </body> </html> I am wondering: