锘縱ar isLoad = false; var lastPage = false; $(function () { bindEvent(); url = "/BookCircle/Handler/CommonHandler.ashx" window.onscroll = function () { let top = getScrollTop(); let ch = getScrollBarHeight(); let sh = getPageHeight(); if (top + ch >= sh - 200) { if (page >= 10 || isLoad) { return; } page++; loadTopic(); } else { } } $("#search").click(function () { var kwd = $("#keyword").val(); if (kwd.trim().length == 0) { return; } location.href = "/bookcircle/index.htm?kwd=" + kwd; }); $("#keyword").keypress(function (event) { var key = event.keyCode; if (key == 13) { $("#search").click(); } }); });