Line 2: | Line 2: | ||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | $(widnow).scrollTop(0);//强制回到开头避免加载残缺 | + | //$(widnow).scrollTop(0);//强制回到开头避免加载残缺 |
$(document).bind('mousewheel DOMMouseScroll',mouseScroll);//鼠标滚轮事件绑定 | $(document).bind('mousewheel DOMMouseScroll',mouseScroll);//鼠标滚轮事件绑定 | ||
$(document).keydown(mouseScroll);//键盘上下事件绑定 | $(document).keydown(mouseScroll);//键盘上下事件绑定 |
Revision as of 06:07, 20 July 2018