http://localhost:8080/page/index
根路径:http://localhost:8080
在ie中输入localhost:8080/page/index不会起作用,要在前面加上“http://”才行,
<a href="admin"/> 链接的是:http://localhost:8080/page/admin
在admin前面没有“/”的时候是会将href中的字符替换在最后“/”后面:
现:http://localhost:8080/page/admin
原:http://localhost:8080/page/index
<a href="/admin"/> 链接的是:http://localhost:8080/admin
在admin前面有“/”的时候是会将href中的字符替换在根路径后面:
现:http://localhost:8080/admin
原:http://localhost:8080/page/index