html5 - HTML标签中相对路径的问题
黄舟
黄舟 2017-04-17 15:49:19
0
2
439
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
黄舟

I understand, are you using express and setting the default homepage?
At this time, you visited localhost:1337/ but the content of /public/123/1.html was taken. At this time, your path is actually under the root path /, so the page request is localhost:1337/../ 1.js, and was reset to localhost:1337/1.js by the browser


Now when you visit localhost:1337/public/123/1.html, the request at this time should be localhost:1337/public/1.js

Peter_Zhu

Did you use routing? It can only be calculated from your current location

You can just use 1.js for this

Didn’t you capture everything/everything here? Then I found a public/132/1.html to render

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template