func
創(chuàng)新互聯(lián)公司為您提適合企業(yè)的網(wǎng)站設(shè)計?讓您的網(wǎng)站在搜索引擎具有高度排名,讓您的網(wǎng)站具備超強的網(wǎng)絡(luò)競爭力!結(jié)合企業(yè)自身,進行網(wǎng)站設(shè)計及把握,最后結(jié)合企業(yè)文化和具體宗旨等,才能創(chuàng)作出一份性化解決方案。從網(wǎng)站策劃到
成都做網(wǎng)站、成都網(wǎng)站設(shè)計, 我們的網(wǎng)頁設(shè)計師為您提供的解決方案。tion f_showPage() {
var pageHtml = '';
if (currentGroup > 0) {
pageHtml = pageHtml
+ "
<< ";
}
else
{
pageHtml = pageHtml
+ "
<< ";
}
if (currentPage > 1) {
pageHtml = pageHtml
+ "
<"
}
else
{
pageHtml = pageHtml
+ "
< ";
}
var pageNum = currentGroup * 9 + 1;
for ( var i = 0; i < 9; i++) {
if (pageNum == currentPage) {
pageHtml = pageHtml
+ "
" + pageNum + ""
} else {
pageHtml = pageHtml
+ "
" + pageNum + ""
}
pageNum++;
}
pageHtml = pageHtml
+ "
>"
pageHtml = pageHtml
+ "
>>"
$("#page").html(pageHtml);
}
function f_showBadPage() {
var pageHtml = '';
pageHtml = pageHtml
+ "
<< ";
pageHtml = pageHtml
+ "
< ";
var pageNum = currentGroup * 9 + 1;
for ( var i = 0; i < 9; i++) {
if (pageNum == currentPage) {
pageHtml = pageHtml
+ "
" + pageNum + ""
} else {
pageHtml = pageHtml
+ "
" + pageNum + ""
}
pageNum++;
}
pageHtml = pageHtml
+ "
>"
pageHtml = pageHtml
+ "
>>"
$("#page").html(pageHtml);
}
function gridMainPreGroup() {
if(currentGroup > 0)
{
lastGroup = currentGroup;
lastPage = currentPage;
currentGroup = currentGroup - 1;
currentPage = currentGroup * 9 + 1;
}
f_showBadPage();
var parms = gridMain.get('parms');
parms.page = currentPage;
parms.pagesize = 30;
gridMain.set('parms', parms);
gridMain.loadData();
}
function gridMainPrePage() {
lastGroup = currentGroup;
lastPage = currentPage;
currentPage = currentPage - 1;
if (currentPage < currentGroup * 9 + 1) {
if (currentGroup > 0) {
currentGroup = currentGroup - 1;
}
}
f_showBadPage();
var parms = gridMain.get('parms');
parms.page = currentPage;
parms.pagesize = 30;
gridMain.set('parms', parms);
gridMain.loadData();
}
function gridMainChangePage(page) {
lastGroup = currentGroup;
lastPage = currentPage;
currentPage = page;
f_showBadPage();
var parms = gridMain.get('parms');
parms.page = currentPage;
parms.pagesize = 30;
gridMain.set('parms', parms);
gridMain.loadData();
}
function gridMainNextGroup() {
lastGroup = currentGroup;
lastPage = currentPage;
currentGroup = currentGroup + 1;
currentPage = currentGroup * 9 + 1;
f_showBadPage();
var parms = gridMain.get('parms');
parms.page = currentPage;
parms.pagesize = 30;
gridMain.set('parms', parms);
gridMain.loadData();
}
function gridMainNextPage() {
lastGroup = currentGroup;
lastPage = currentPage;
currentPage = currentPage + 1;
if (currentPage > currentGroup * 9 + 9) {
currentGroup = currentGroup + 1;
}
f_showBadPage();
var parms = gridMain.get('parms');
parms.page = currentPage;
parms.pagesize = 30;
gridMain.set('parms', parms);
gridMain.loadData();
}
網(wǎng)站標(biāo)題:javascript分頁-創(chuàng)新互聯(lián)
文章地址:
http://weahome.cn/article/ihcec.html