window.location.href = "index.html" ;登录成功后会跳转到index.html页面,地址栏
会显示http://localhost:8080/Test/index.html,
如何在index.html页面的地址栏中只显示http://localhost:8080/Test/
在index.html页面加入
开发配置的php.ini设置默认index.html为入口文件 就可以了
window.location.href = "/Test/"
并且需要设置web服务器默认文档为index.html
你里面的内容都放在一个iframe里面不就可以了,具体你可以看下115网盘(选择文件夹的时候,地址不会变)。