//输入页号分页 function gotoPage(event, c, curPageNo, totalPageCount, signId, customParams) { if (event.keyCode == 13) { if (isNaN(c.value)) { alert('请正确输入页号!'); return false; } if (parseInt(c.value) <= 0 || parseInt(c.value) > totalPageCount) { alert('请正确输入页号!(1-' + totalPageCount + '之间的整数)'); return false; } var href = "?lkocok_pageNo=" + c.value; if (customParams) { href += "&" + customParams; } window.location.href = href; return false; } }