• This project
    • Loading...
  • Sign in

fe / YOHOBUYPC · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 2
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • YOHOBUYPC
  • web-static
  • js
  • header.js
  • 合并男首冲突
    7f540f7b
    by wangqing
    2015-12-01 17:42:43 +0800  
    Browse Directory »
header.js 282 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 * 头部
 * @author: wangqing<robin.wang@yoho.cn>
 * @date: 2015/12/01
 */

var $ = require('jquery');
/**
 * 回到顶部
 * @type {[type]}
 */
var $returnTop = $('.return-top');

$returnTop.click(function() {
    $('html,body').animate({
        scrollTop: 0
    }, 500);
});