Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题是,当用户进入我的网站时,例如:www.mywebsite.com
我使用pylonshq
如果可能,我希望将 URL 更改为 /#home。地图连接。我不知道如何通过修复它。python,因此指南或一些示例可能会有所帮助。
现在它看起来像这样:
map.connect('/', controller='home',action='index')
最简单的解决方案是添加 js,如下所示:location.url += '#home'。
或者使用包含锚的问题重定向(但这在 IE 中不起作用)。