English 中文(简体)
如何在内容中使用静态菜单和jQuery管理网站
原标题:How to manage a website with static menu and jQuery in content

我有一个网站,上面有一个菜单div,左边有一个侧导航。我一直在使用ajax.load()来用我想要的任何内容替换内容div。在加载页面的内容中使用jQuery时,我似乎遇到了很多问题。使用.live()函数很有帮助,但我总是在某些地方出现意外行为。

在不刷新整个页面、对进入的内容没有问题的情况下,处理菜单/导航布局的正确方法是什么?你们用什么框架。

最佳回答

正确的方法不是ajax。您节省了少量带宽,作为回报,您可以中断按钮导航、缓存、搜索引擎索引,并使整个网站依赖javascript。这是一个糟糕的权衡。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签