index当前页,目标页hello,localhost:8080为目标网站 相对路径会相对于当前页面所处位置 http://localhost:8080/aaa/bbb/index.html http://localhost:8080/aaa/bbb/hello 绝对路径和当前页面所处位置无关都是从工程根路径开始 http://localhost:8080/aaa/bbb/index.html http://localhost:8080/hello <a href="hello">相对路径</a> <a href="/hello">绝对路径1</a> <a href="http://localhost:8080/hello">绝对路径2</a>
相对路径、绝对路径
最新推荐文章于 2024-07-21 22:27:18 发布