分页绑定时什么意思?说明白点啊

解决方案 »

  1.   

    用js也能实现分页吗?学习中!
      

  2.   

    已经解决了,下面就是我的分类绑定函数:
    function PageBind(pageTo)
    {//自定义分页绑定函数
        // 删除table > 1 的行
        while(document.getElementById("tblMyUploadS").rows.length > 1)
        {//table行删除,只保留第一行
            document.getElementById("tblMyUploadS").deleteRow(1);
        }
        // 根据页数和条件,查询数据************ 特别注意,这要根据页数去查询******************
        var myloadseach=PageShowMyUpload.MyloadSeach(textname,library,mytimefrom,mytimeto,myloadseach).value;
        // 查询错误处理
        if(myloadseach == null || myloadseach.Tables[0].Rows.length == 0)
         {
             document.getElementById("trMsg").style.display = "inline";
             document.getElementById("txtMyUpload").focus();
         }
        else
        {
            var maxRowLength = 10> myloadseach.Tables[0].Rows.length?myloadseach.Tables[0].Rows.length:10;
            for (var i = 0 ;i < maxRowLength ;i++)
            {
                var tr = document.getElementById("tblMyUploadS").rows[0].cloneNode(true);//定义一个table的行
                document.getElementById("tblMyUploadS").appendChild(tr);//给table添加行
                tr.children[0].className = "tdClass0";//设定这行的第一列   这个是设定css
                tr.children[0].innerText = myloadseach.Tables[0].Rows[i].ApprovalDocDetail;//设定这行的第一列   这个是设定显示的文字
                tr.children[1].className = "tdClass1";//设定这行的第二列   这个是设定css
                tr.children[1].innerText = myloadseach.Tables[0].Rows[i].ApprovalDocDetail;//设定这行的第二列   这个是设定显示的文字
                tr.children[2].className = "tdClass2";//设定这行的第三列   这个是设定css
                tr.children[2].innerText = myloadseach.Tables[0].Rows[i].ApprovalDocDetail;//设定这行的第三列   这个是设定显示的文字
                tr.children[3].className = "tdClass3";//设定这行的第四列   这个是设定css
                tr.children[3].innerText = myloadseach.Tables[0].Rows[i].ApprovalDocDetail;//设定这行的第四列   这个是设定显示的文字
                tr.children[4].className = "tdClass4";//设定这行的第五列   这个是设定css
                tr.children[4].innerText = myloadseach.Tables[0].Rows[i].ApprovalDocDetail;//设定这行的第五列   这个是设定显示的文字
                tr.children[5].innerHTML =  "<div class = 'dateFlag'>详细</div>";//给第六列添加一个 div
                tr.children[5].className = "tdClass5";//设定这行的第六列   这个是设定css
            }
        }
    }