Java2Script 的作者
周仁建说,要有Gtalk Js版,便有了js版
我则借花献佛:),嵌入了我的 (WebOs雏形)
不过,对gtalk源码做了一点小的修改
Object.prototype.equals<wbr></wbr>=function(obj){return this==obj;};
//Object.prototype.hashCode<wbr></wbr>=function(){return this.toString().hashCode();};
Object.prototype.getClass<wbr></wbr>=function(){return Clazz.getClass(this);};
//Object.prototype.clone<wbr></wbr>=function(){var o=new
this.constructor();for(var i in this){o[i]=this[i];}return
o;};Object.prototype.finalize<wbr></wbr>=function(){};
Object.prototype.notify<wbr></wbr>=function(){};
Object.prototype.notifyAll<wbr></wbr>=function(){};
Object.prototype.wait=function(){};
Object.prototype.toString<wbr></wbr>=function(){if(this.__CLASS_NAME__!<wbr></wbr>=null){return"["+this.__CLASS<wbr></wbr>_NAME__+"
object]";}else{return"[object]<wbr></wbr>";}};
附 周仁建的力作 :
java2script版gtalk应用地址: http://demo.java2script.org/gtalk/
Java2Script 1.0.0版: http://j2s.sourceforge.net/
我则借花献佛:),嵌入了我的 (WebOs雏形)
不过,对gtalk源码做了一点小的修改
注释掉以下两行就可以了,`
Object.prototype.equals<wbr></wbr>=function(obj){return this==obj;};
//Object.prototype.hashCode<wbr></wbr>=function(){return this.toString().hashCode();};
Object.prototype.getClass<wbr></wbr>=function(){return Clazz.getClass(this);};
//Object.prototype.clone<wbr></wbr>=function(){var o=new
this.constructor();for(var i in this){o[i]=this[i];}return
o;};Object.prototype.finalize<wbr></wbr>=function(){};
Object.prototype.notify<wbr></wbr>=function(){};
Object.prototype.notifyAll<wbr></wbr>=function(){};
Object.prototype.wait=function(){};
Object.prototype.toString<wbr></wbr>=function(){if(this.__CLASS_NAME__!<wbr></wbr>=null){return"["+this.__CLASS<wbr></wbr>_NAME__+"
object]";}else{return"[object]<wbr></wbr>";}};
附 周仁建的力作 :
java2script版gtalk应用地址: http://demo.java2script.org/gtalk/
Java2Script 1.0.0版: http://j2s.sourceforge.net/