问题描述
我想开发具有完全的AJAX导航网站,但这意味着用户不能共享,书签或直接进入某些内容。
I would like to develop a website with fully ajax navigation, but this means that users cannot share, bookmark, or go straight to certain content.
我注意到一些网站(的Gmail ,的,的Youtube )使用哈希标签来创建自定义的URL不同的页面配置。什么是这种技术叫,我怎么能实现呢?
I noticed a few websites (Gmail, Thesixtyone, Youtube) are using hash tags to create custom urls for different page configurations. What is this technique called, and how can I implement this?
推荐答案
龙成JQuery的地址。 http://www.asual.com/jquery/address/
Loon into JQuery address.http://www.asual.com/jquery/address/
这不正是你在说什么。不过,既然你问什么#意味着自定义URL,我认为你是相当新的这一点。 JQuery的地址看起来令人生畏在第一,但它真的很简单。你应该使用JQuery的所有Ajax处理了。
This does exactly what you're talking about.However, since you asked what the # means in custom URLs, I assume you're fairly new at this. JQuery address will look intimidating at first, but it's really quite easy. You should use JQuery for all your ajax handling too.
#
是一个锚标记。如果你这样做<名称=名单>这是一个锚标记< / A>
再加入#list到的网址,页面会跳转至一个标记,其中名称=列表。
#
is an anchor tag. if you do this <a name="list">This is an anchor tag</a>
then add #list to the url, the page will jump to the a tag where name = list.
这篇关于网址导航中,基于AJAX的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!