html页面回到顶部插件

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jquery回到顶部页面</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://files.cnblogs.com/files/tkcity/jquery.goup.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $.goup({
                trigger: 100,
                bottomOffset: 150,
                locationOffset: 100,
                title: 'Top',
                titleAsText: true
            });
        });
    </script>
</head>
<body style="height: 2000px; text-align: center;">
	向下滚动,查看效果
</body>
</html>
posted @ 2017-05-15 10:10  在吗  阅读(143)  评论(0编辑  收藏  举报