妄徒之命 2011-03-23 11:55 采纳率: 100%
浏览 1006
已采纳

如何使用 jQuery 刷新页面?

How can I refresh a page with jQuery?

转载于:https://stackoverflow.com/questions/5404839/how-can-i-refresh-a-page-with-jquery

  • 写回答

22条回答 默认 最新

  • 北城已荒凉 2011-03-23 11:57
    关注

    Use location.reload():

    $('#something').click(function() {
        location.reload();
    });
    

    The reload() function takes an optional parameter that can be set to true to force a reload from the server rather than the cache. The parameter defaults to false, so by default the page may reload from the browser's cache.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(21条)

报告相同问题?

悬赏问题

  • ¥15 hexo+github部署博客
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了
  • ¥100 H5网页如何调用微信扫一扫功能?