weixin_33712881 2014-01-14 08:43 采纳率: 0%
浏览 13

Ajax / jQuery位置

i want to add some hash ref linking that when i click on a menu button it changed to the actual section maybe from

http://www.mycompany.com/about to http://www.mycompany.com/work or maybe /something

i have this solution but i don't know how can i add this to my actually solution.

$(document).ready(function(){
     $('#allcontent').load('data/home.html');

    $('.hovers').click(function() {
       var page = $(this).attr('href'); 
    $('#allcontent').load('data/' + page + '.html');
    return false;
});
});

Here is my Fiddle: DEMO

Maybe with this? window.location.hash =

Thank you so much

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥20 OpenCV-Python简单轮廓寻找
      • ¥20 使用matlab进行含参数的最优化求解及数值模拟
      • ¥20 MATLAB找出一维变量中的局部极大值和局部极小值,并进行运算
      • ¥15 有Chang求三维杆单元几何非线性分析matlab代码
      • ¥50 使用unity easyar录屏功能。录屏视频整体色调很暗
      • ¥50 pyinstaller 打包问题
      • ¥15 无法使用cnssc调取网页数据
      • ¥15 Pycharm安装en_core_web_sm失败出现Could not find a version that satisfies the requirement spacy报错
      • ¥15 Python社区划分
      • ¥15 游戏Aces.exe启动问题,想请教有没有友友可以看看如何解决~