浏览代码

Update style.js

tags/6.2.12
叙述、别离 1年前
父节点
当前提交
433a6b642e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/static/web/js/style.js

+ 2
- 2
src/static/web/js/style.js 查看文件

@@ -2,8 +2,8 @@
$(function() {
$(window).on('scroll', function() {
var scrolled = $(window).scrollTop();
if (scrolled > 10) $('#returntop').show();
if (scrolled < 10) $('#returntop').hide();
if (scrolled > 100) $('#returntop').show();
if (scrolled < 100) $('#returntop').hide();
});
$('#returntop').on('click', function() {
$('html, body').animate({


正在加载...
取消
保存