Ext 方法使用
摘要: 1、Ext.apply(Object obj, Object config, Object defaults ) : Object将config中的所有属性复制到obj中,如果配置了defaults,则先将defaults中的属性传入obj,然后再将config中属性传入,一般defaults用于定义一些默认值。注意:每个参数都必须是对象object,而不能是function或其他。创建objec...
阅读全文
posted @
2009-11-09 14:52 hcmfys_lover 阅读(178) |
评论 (0) 编辑
Ext js call方法
摘要: call 方法 请参阅 应用于:Function 对象 要求 版本 5.5 调用一个对象的一个方法,以另一个对象替换当前对象。 call([thisObj[,arg1[, arg2[, [,.argN]]]]]) 参数 thisObj 可选项。将被用作当前对象的对象。 arg1, arg2, , argN 可选项。将被传递方法参数序列。 说明 call 方法可以用来代替另一个对象调用一个方法。ca...
阅读全文
posted @
2009-11-09 14:49 hcmfys_lover 阅读(214) |
评论 (0) 编辑
ExtJs关于Ext.extend()的说明
摘要: Ext.extend方法是用来实现类的继承。 extend(Object subclass,Object superclass,[Object overrides] : Object 第一个参数:子类 第二个参数:父类 第三个参数:要覆盖的属性。 这里需要强调一下,子类继承下来的是父类中通过superclass.prototype方式定义的属性(包括用此方法定义的函数)。 例子如下: Js代码 &...
阅读全文
posted @
2009-11-09 14:39 hcmfys_lover 阅读(370) |
评论 (0) 编辑
FormPanel 使用
摘要: 往Ext.Window中放一个Ext.form.FormPanel,FormPanel有一个属性为url,可以设置其的值,可参照下面的代码://Form表单var addManagerInfoForm = new Ext.form.FormPanel({ labelAlign:'right', labelWidth:70, frame:true, url:'manage/manager/addMa...
阅读全文
posted @
2009-11-09 12:02 hcmfys_lover 阅读(77) |
评论 (0) 编辑
Ext.Window更换iframe的地址2
摘要: //按扭 var dateBtn = new Ext.Action({ text:'按日期', tooltip:'按日期查看当月报表', handler:function(){ Ext.getDom('iframeA').src = '/EXTcash/cashOutAction.do?method=lineChart&flag=coutDate'; }});var typeBtn = n...
阅读全文
posted @
2009-11-09 12:01 hcmfys_lover 阅读(141) |
评论 (0) 编辑
Extjs 如何动态添加window的items项
摘要: JScript code <script type="text/javascript"> var user1 = new Ext.form.TextField({ }) var user2= new Ext.form.TextField({ }) var c_window = new Ext.Window({ title: 'title', width: 950, height:...
阅读全文
posted @
2009-11-09 12:00 hcmfys_lover 阅读(448) |
评论 (0) 编辑
Ext.Window更换iframe的地址
摘要: Ext.window一般是类似 Ext.viewport样的是可以放 formpanel,grid等 这些都是在同一个页面中,只是有js生成。如果你要求window里面放一个url 链接到另一个页面 如nextPage.jsp那么就要用到iframe发给例子给你吧var url = ../game/game.action"; var win = new Ext.Window({ title : '...
阅读全文
posted @
2009-11-09 11:58 hcmfys_lover 阅读(328) |
评论 (0) 编辑
js的constructor callee caller
摘要: <scripttype="text/javascript">varname="windowmethod";functionparentClass(){this.name="parentClassmethod";this.method=function(){alert(this.name);}}functionsubClass(){//varmethod=this.method;//th...
阅读全文
posted @
2009-11-06 17:35 hcmfys_lover 阅读(79) |
评论 (0) 编辑
js 移动限制
摘要: <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">html,body{margin:0px; padding:0px; font-family:Georg...
阅读全文
posted @
2009-11-06 17:34 hcmfys_lover 阅读(11) |
评论 (0) 编辑
Ext Extends test
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <...
阅读全文
posted @
2009-11-06 17:33 hcmfys_lover 阅读(28) |
评论 (0) 编辑
panel自适应高度
摘要: /* monitorResize: true, doLayout: function() { this.setWidth(window.screen.width); Ext.grid.GridPanel.prototype.doLayout.call(this); } ,*/ listeners :{ bodyresize:function() { thi...
阅读全文
posted @
2009-11-06 17:30 hcmfys_lover 阅读(206) |
评论 (0) 编辑
EXt ComBox
摘要: Extcombox从后台取值varRecordDef=Ext.data.Record.create([{name:'id'},{name:'name'}]);varcityStore=newExt.data.Store({proxy:newExt.data.HttpProxy({url:'comboxdata.php'}),reader:newExt.data.JsonReader({id:"id...
阅读全文
posted @
2009-11-06 17:26 hcmfys_lover 阅读(174) |
评论 (0) 编辑