日期:2014-05-17  浏览次数:20686 次

oracle的分页
各位我在后台拼接了一张表,想对他实现分页,不知道有什么好的方法?这个是拼接的。
Oracle 分页

------解决方案--------------------
直接网上搞个分页框架  然后应用就行了
------解决方案--------------------
在后台直接拼也是可以的
str.append("<table class=\"page_turn_table\"><tr>");
str.append("<td class=\"page_turn_txt01\">");
str.append("每页[10]条   共[<span id=\"countList\">"+countList+"</span>]条 " +
" 共  <span id=\"pageCount\">" + pageCount + "</span> 页");
str.append("<a id=\"firstPage\" href=\"#\" onclick=\"firstPage('" + scriptName + "');\">" + firstImgFilePath + "</a>  ");
str.append("<a id=\"frontPage\" href=\"#\" onclick=\"frontPage('" + scriptName + "');\">" + prevImgFilePath + "</a>  ");
str.append("<a id=\"nextPage\" href=\"#\" onclick=\"nextPage('" + scriptName + "');\">" + nextImgFilePath + "</a>  ");
str.append("<a id=\"endPage\" href=\"#\" onclick=\"endPage('" + scriptName + "');\">" + lastImgFilePath + "</a>");
str.append("到第<input type='text' class='page_turn_textbox' id='pageTurn' value='1'>页");
str.append("<input type=\"button\" name=\"submit\" id=\"goPage\" value=\"go\" class=\"button_out\" " +"onMouseOver=
"onclick=\"goP('" + scriptName + "');\" />" +
"<input type='hidden' class='page_turn_textbox' id='pageTurnHidden' value='1'>");
str.append("</td></tr></table>");