易截截图软件、单文件、免安装、纯绿色、仅160KB

怎么把javascript转换成jquery???

function Page(iAbsolute,sTableId,sTBodyId)
{
this.absolute = iAbsolute; //每页最大记录数
this.tableId = sTableId;
this.tBodyId = sTBodyId;
this.rowCount = 0;//记录数
this.pageCount = 0;//页数
this.pageIndex = 0;//页索引
this.__oTable__ = null;//表格引用
this.__oTBody__ = null;//要分页内容
this.__dataRows__ = 0;//记录行引用
this.__oldTBody__ = null;
this.__init__(); //初始化;
};
/*
初始化
*/
Page.prototype.__init__ = function(){
this.__oTable__ = document.getElementById(this.tableId);//获取table引用
this.__oTBody__ = this.__oTable__.tBodies[this.tBodyId];//获取tBody引用
this.__dataRows__ = this.__oTBody__.rows;
this.rowCount = this.__dataRows__.length;
try{
this.absolute = (this.absolute <= 0) || (this.absolute>this.rowCount) ? this.rowCount : this.absolute;
        this.pageCount = parseInt(this.rowCount%this.absolute == 0
? this.rowCount/this.absolute : this.rowCount/this.absolute+1);
}catch(exception){}
this.__updateTableRows__();
};
Page.prototype.GetBar=function(obj)
{
var bar= document.getElementById(obj.id);
bar.innerHTML= "每页"+this.absolute+"条/共"+this.rowCount+"条";// 第2页/共6页 首页 上一页 1 2 3 4 5 6 下一页 末页 
}
/


相关问答:

求一个用正则表达式实现简单验证的JavaScript代码

如有一个textbox,用户输入后点button按钮时,实现用JavaScript对textbox输入信息的验证,要求用JavaScript来实现,比如验证用户输入的是否是数字。
希望将HTML代码一并写出来哈,谢谢
HTML code:

<!DOC ......

JavaScript游戏玛丽医生Dr Mario实现原理

在很久很久以前,我们这些80后的小朋友终于玩上了自己的小霸王游戏机,超级玛丽,玛丽医生,雪人兄弟,诸多经典游戏让人无法忘怀,成为一个心结!

在完成了俄罗斯方块后,这是我写的又一个JavaScript游戏,玛 ......

C#写JAVASCRIPT 数组

C#写JAVASCRIPT 数组

      protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
& ......

javascript调用后台带参数的函数

后台有一个函数 protected string Fun1(int a, string b)

我想在javascript代码中调用它,怎么做?

function GridBind()
{
    var a = 1;
    var b='s';
& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号