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>

浙公网安备 33010602011771号