dsubq24666
2012-07-07 07:18
浏览 614
已采纳

页面重定向而不刷新

I want redirection without refreshing the whole parent page. Is there any way through which I can perform this. I need the functionality like the site below

https://github.com/jquery/jquery

Like in the above site the listing of files are there under jQuery. When we click on any of the file it will redirect us to that file without page refresh.

Any help would be appreciated. Thanks.

图片转代码服务由CSDN问答提供 功能建议

我想重定向而不刷新整个父页面。 我有什么方法可以执行此操作。 我需要像以下网站这样的功能

https://github.com/ jquery / jquery

与上面的网站一样,jQuery下有文件列表。 当我们点击任何文件时,它会将我们重定向到该文件而不刷新页面。

任何帮助都将不胜感激。 谢谢。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • dongtiao2976 2012-07-07 07:27
    最佳回答

    Without knowing your exact requirements, I cant give you a proper answer in general, jQuery will be your best bet.

    Use jQuery.ajax (doc here http://api.jquery.com/jQuery.ajax/)

    This method allows you to query data asynchronously without page refresh and then do what you want to the result.

    If you give a exact description of your requirements, I could point to you a tutorial.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题