JS小练习代码之二
相关的源代码如下: 1.beginFormPanel.js(作用:外层html文件中表单的展现) var beginFormPanel = Ext.extend(Ext.form.FormPanel,{ constructor:function() { beginFormPanel.supercl
相关的源代码如下: 1.beginFormPanel.js(作用:外层html文件中表单的展现) var beginFormPanel = Ext.extend(Ext.form.FormPanel,{ constructor:function() { beginFormPanel.supercl
Error对象 Property:name: 错误名number: 错误号description: 描述message: 错误信息,多同descriptionFF Only 属性fileName: 错误发生的文件stack: 错误发生时的调用堆栈 Constructor:Error(){this(0
function objectClone(obj,preventName){ if((typeof obj)=='object'){ var res=(!obj.sort)?{}:[]; for(var i in obj){ if(i!=preventName) res[i]=objectClone
贴个代码先: function O(user,pwd){ //use constructor this.user=user; this.pwd=pwd; this.get=get; return this; } function O2(user,pwd){ //use factory var obj
实现代码如下:function P(name){ this.name=name; this.p1=function(){ alert('Parent Constructor'); } return this; } function C(name,id){ //this.method=P; //thi