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.
我目前正在开发 WhiteBoard 应用程序。我需要将#id 附加到url。它与http://awwapp.com/draw.html#1205febd相同。我是龙卷风框架的新手。如何调用这个url来查看。请解释一下。谢谢。
#1205febd与后端无关。这是一个所谓的target。当您<a href="#1205febd">在页面上有一个链接时,http://awwapp.com/draw.html浏览器会自动将该哈希附加到 URL(点击时)。
#1205febd
target
<a href="#1205febd">
http://awwapp.com/draw.html
如果您想根据该哈希在后端执行一些操作,您绝对应该在前端获取 id 并使用一些 RIA 框架(JQuery等AngularJS)将 AJAX 查询发送到您的后端(Tornado?)并呈现浏览器中的布局取决于其响应。
JQuery
AngularJS
Tornado