我通过在href中添加#来避免锚点标签点击时的PageRefresh。但这会让我的页面上移。如何在不添加#的情况下停止页面刷新?
<a href="#" data-toggle="collapse" data-target="#LevelDropdown_@priorityProvider.Provider.ProviderId@uniqueLeadSourcePriorityId"></a>发布于 2017-11-27 22:17:01
使用jquery函数防止锚点点击刷新页面
    $(function(){
      $("a").click(function()
      {
        $.get("YourUrl" );
        return false; // prevent browser to refresh
      });
    });https://stackoverflow.com/questions/47512944
复制相似问题