济南网页设计|自助建站济南网站建设|聊城网站建设济南网站制作|济南网站优化 http://www.mzwkj.com www.tuanqv.com

2009年4月29日

摘要: Ext.extend用法(ext的继承)收藏概述Ext.extend是Ext的继承机制,这个函数的代码相当难懂。要明白这个函数的代码,首先要知道这个函数如何使用。使用方式使用示例假设有个function名为SuperClass,要实现一个子类,名为MyClass。下面的两种方式都可以实现这个功能。MyClass=Ext.extend(SuperClass,{/**/});Ext.extend(MyClass,SuperClass,{/**/});下面来个具体示例:vara=function(id){this.id=id;}a.prototype={tostring:function(){ret 阅读全文
posted @ 2009-04-29 21:47 路大侠 阅读(205) 评论(0) 推荐(0)
摘要: XTemplate是Extjs里面的模板组件.下面我们看个最简单的例子.效果图:js代码:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){//数据源vardata={name:"博客园",read:[{book:'<<道不远人>>',date:'2007-7-7'},{book:"<<大话设计模式&g 阅读全文
posted @ 2009-04-29 21:46 路大侠 阅读(214) 评论(0) 推荐(0)
摘要: 原贴见:http://ext.group.javaeye.com/group/post/37548http://extjs.com/forum/showthread.php?t=17423Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){varfckFormObj=newExt.FormPanel({labelWidth:75,url:"",title:"EXT/FCK 阅读全文
posted @ 2009-04-29 21:45 路大侠 阅读(138) 评论(0) 推荐(0)
摘要: 使用extjs配合struts的MVC架构是目前流行的做法,两者的整合相当简单,只需扩展Action,直接向HttpServletResponse里写xml和json格式的内容,不再需要forward到struts指定的页面。//取查询结果xml和总记录个数Stringxml=resultBuffer.getStringValue(CoreConsts.LIST_DATA_XML,0);Stringrecords=resultBuffer.getStringValue(CoreConsts.TOTAL_COUNT,0);//替换xml中的记录个数xml=replaceRecords(xml,r 阅读全文
posted @ 2009-04-29 21:38 路大侠 阅读(177) 评论(0) 推荐(0)
摘要: ajax.prototype.javascript实例打包下载..不错不错,都是我喜欢的~。保存在这里拉~。大家喜欢可以拿去下载。点击下载:5右拖动--多选框控制显示和不显示列.rar点击下载:ajax-FileUpload.rar点击下载:ajax-tab.rar点击下载:ajaxtabscontent.zip点击下载:all-js-comasp.rar点击下载:boxover2.rar点击下载:clearbox.rar点击下载:Css-js层式菜单.rar点击下载:demo嵌套在右边的弹出信息.rar点击下载:demo鼠标移动到字上面时,出现信息框.rar点击下载:demo缩图.rar点击 阅读全文
posted @ 2009-04-29 10:21 路大侠 阅读(182) 评论(0) 推荐(0)

导航

济南户外拓展|企业户外拓展 http://www.tuanqv.com