啊啊啊,JQuery怎么实现继承呢? jqueryjavascript继承function 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不明白你的意思 如果你只想扩展jquery对象的话 楼上的可以如果真的是要继承 和js继承一样啊 不过用时先引入jquery就是了 我是要继承自己帖子里的函数Edit(),不是扩展jquery对象或者命名空间. jQuery 是不用继承的。jQuery是没有继承的。 定义类Personfunction Student(){}Student.prototype=new Person();Student.prototype.methodname=function(){};构造函数调用:function classA(){ this.tempMethod = ClassB; this.tempMethod(); delete this.tempMethod;}call方法和apply方法function Dog(color,age){ Animal.call(this,color,age);}Function Cat(color,age){ Animal.apply(this,[color,age]);} js 参数传递问题?求帮助 >>>做了个 IP 定位查询的网站,请大家帮忙测试一下<<< 急!!如下代码在火狐下为什么第一张图片不显示?没反应? 出问题了、 webdings 字体在火狐下无效,怎么办? ASP 即时消息功能,有点问题,进来看看 怎么编程实现然IE的编码设置成自动选择阿? onclick事件的问题 怎样实现两个select框互选数据。 错误提示:缺少activex控件。不能创建scripting.dictionary 这种特效如何实现,急! banner焦点图问题 求一个关于时间段的算法, 关于时间段不能重叠的问题
如果真的是要继承 和js继承一样啊 不过用时先引入jquery就是了
我是要继承自己帖子里的函数Edit(),不是扩展jquery对象或者命名空间.
function Student(){}
Student.prototype=new Person();
Student.prototype.methodname=function(){};构造函数调用:
function classA(){
this.tempMethod = ClassB;
this.tempMethod();
delete this.tempMethod;
}call方法和apply方法
function Dog(color,age){
Animal.call(this,color,age);
}
Function Cat(color,age){
Animal.apply(this,[color,age]);
}