程式碼如下: 複製程式碼 程式碼如下: http://www.w3.org/1999/xhtml"> http-equiv="Content-Type" content="text/html; charset=utf-8"> Insert title here 商品名称: 是否付款: 请选择 已付款 未付款 每页显示 5 10 20 50 条 共6条记录 第 页 / 共1页 第一页 最后一页 跳转页码至: 1 function sel(val){return document.getElementById(val);} var page=sel('curpage');var form=sel('pquery');var select=sel('selectpage'); function page_first() {page.value = 1;form.submit();} function page_pre() {var a = page.value;a = parseInt(a) - 1;page.value = a;page_validate();form.submit();} function page_next() {var a = page.value;a = parseInt(a) 1;page.value = a;page_validate();form.submit();} function page_last() {page.value = 1;form.submit();} function page_validate() {var a = page.value;if (a 1){a = 1;}page.value = a;} function gotoSelectedPage1() {page.value = 1;form.submit();} function gotoSelectedPage() {page.value = select.value;form.submit();} 腳本> 表格>