1. 页面内容较多, 从底部超链接 点击回到页面顶部

        // 回到顶部
        var $top = $('<a class="doc-gotop" href="javascript:;">TOP</a>')
        .on('click', function () {
            $(window).scrollTop(0);
            return false;
        });
        $('body').append($top);

 

相关文章:

  • 2022-12-23
  • 2021-05-22
  • 2021-08-12
  • 2022-12-23
  • 2021-10-16
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2022-03-02
  • 2022-01-03
  • 2021-12-28
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案