2016年9月13日
摘要: Ext.data.Batch实例 Ext.data.Batch用于管理批量操作中的各个Ext.data.Operation实例,一般在Ext.data.proxy.Proxy内部使用,就是proxy会自动配置该项),配置时不用配置。 Ext.data.Operation实例 {create,upda 阅读全文
posted @ 2016-09-13 12:40 xsSystem 阅读(295) 评论(0) 推荐(0)
  2016年9月1日
摘要: 修订版: 2.9 这份指南中, 可以点击旁边的按钮来显示更多的细节. Hooray! 这里是更多详细的内容, 你也可以点击最上面的"显示/隐藏全部按钮"来切换显示更多内容. JavaScript 是一种客户端脚本语言, Google 的许多开源工程中都有用到它. 这份指南列出了编写 JavaScri 阅读全文
posted @ 2016-09-01 11:01 xsSystem 阅读(404) 评论(0) 推荐(0)
  2013年8月21日
摘要: http://xujingli88.blog.163.com/blog/static/41178619200971194925196/ 阅读全文
posted @ 2013-08-21 17:27 xsSystem 阅读(319) 评论(0) 推荐(0)
  2013年6月24日
摘要: 有id,/?act=getData&_dc=1372087980533&node=1 阅读全文
posted @ 2013-06-24 23:37 xsSystem 阅读(305) 评论(0) 推荐(0)
  2013年6月18日
摘要: 下文均已服务器端查询为例,一般我们载入数据通过 store.load() 如果要过滤数据则使用 已下下转至: Extjs中store的filter和filterBy的用法,客户端过滤 在Extjs设计界面,很多时候并不需要将所有的数据都显示到界面上,这样子我们可以通过在创建store时添加filte 阅读全文
posted @ 2013-06-18 19:44 xsSystem 阅读(1828) 评论(0) 推荐(0)
  2013年6月8日
摘要: function a(){ this.age=15 return this }var obj={name:'liuDeHua',sex:'man'}var c= a.apply(obj)c--------------------------------------------------得到 Object { name="liuDeHua", sex="man", age=15}==================================================改代码为 function a(){ this 阅读全文
posted @ 2013-06-08 20:34 xsSystem 阅读(239) 评论(0) 推荐(0)
  2013年6月6日
摘要: gird 使用grouping,鼠标移动到第一行firefox的提示是TypeError:me.getRowStyleTableEl(...)isnullme.getRowStyleTableEl(item).addCls(me.tableOverFirstCls);----------------------------------------------------------------------------chrome的错误提示Cannotcallmethod'addCls'ofnull 如果第一次渲染,就把归组显示出来,然后取消归组,鼠标在移动到第一行,就不会出错 阅读全文
posted @ 2013-06-06 22:24 xsSystem 阅读(393) 评论(1) 推荐(0)
  2013年6月3日
摘要: 1 Ext.Loader.setConfig({ 2 enabled: true, 3 paths : {//'类名前缀':'对应路径' 4 'App.ux' : 'lib' 5 } 6 }); 7 //或者用setPath设置匹配路径 8 //Ext.Loader.setPath('App.ux', 'lib');//'类名前缀','所在路径' 9 Ext.require(['App.ux.MusicWin']);//引入App.ux(也就是lib) 阅读全文
posted @ 2013-06-03 02:16 xsSystem 阅读(1606) 评论(0) 推荐(0)
  2013年5月31日
摘要: 写这篇文章是因为记性不好,上次出现的问题解决后,这次相同的问题忘记了怎么弄,多花了些时间。记录一下免得以后又忘记了。 故障表现:ghost 还原系统后出现 ntldr is missing : 问题起因:原来装的是XP系统,后来买了个固态硬盘在里面装了个win7系统,就是双系统。把固态硬盘上的win 阅读全文
posted @ 2013-05-31 13:16 xsSystem 阅读(7451) 评论(0) 推荐(0)
  2013年5月29日
摘要: 以下是实验得到结论:1.编辑一行记录服务器发生错误,处理结果是:failure返回数据根下success为false {success:false,.......}:处理结果是failure/相反是success,这还不一定由5条结论否定了当处理结果为 success,会无条件执行commit();commit(true)还是commit(false)这个没测试返回数据应按照 proxy.reader 的设置格式返回,当满足格式要求,数据才会回填至当前编辑行,提交的是一条记录,返回可以是{record},[{record}]都可以当有回填数据并且格式正确但不能读取如回填record为{null 阅读全文
posted @ 2013-05-29 22:58 xsSystem 阅读(1467) 评论(0) 推荐(0)
  2013年5月28日
摘要: An object containing handler configuration.Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.This object may contain any of the following properties:scope : ObjectThe scope (this reference) in which the handler function is executed. If omit 阅读全文
posted @ 2013-05-28 13:23 xsSystem 阅读(702) 评论(0) 推荐(0)
  2013年5月27日
摘要: a、使用addListeners: addListener( String eventName, Function fn, Object scope, Object options ) panel.addListeners('click',function(){alert('点击事件')},this 阅读全文
posted @ 2013-05-27 21:16 xsSystem 阅读(524) 评论(0) 推荐(0)
摘要: 数据格式{ success: true, data: { bookId: 10, bookName: "Ext JS 4 First Look", bookAuthor: "Loiane Groner" }} 参考文献:Yii Framework 整合Extjs Direct实现RPC的方法:http://lonestone.iteye.com/blog/846009http://hi.baidu.com/lhmmit/item/b686f11438ecf2f6746a8444ExtJs表单及其元素了解ExtJs4.0中基本表单Ext.form.Basi 阅读全文
posted @ 2013-05-27 15:25 xsSystem 阅读(395) 评论(0) 推荐(0)
摘要: 官方docs有个例子,给出的是行提示var view = grid.getView();var tip = Ext.create('Ext.tip.ToolTip', { // The overall target element. target: view.el, // Each grid row causes its own separate show and hide. delegate: view.itemSelector,//选择器这里选择'tr.x-grid-row';被选择器选中的元素都会添加tip // Moving within the row 阅读全文
posted @ 2013-05-27 12:40 xsSystem 阅读(674) 评论(0) 推荐(0)
  2013年5月26日
摘要: Ext.data.proxy.Rest 继承至 Ext.data.proxy.Ajax最大区别是按 Rest 风格构建请求//Ext.data.proxy.Ajax 定义为actionMethods: { create : 'POST', read : 'GET', update : 'POST', destroy: 'POST' }//Ext.data.proxy.Rest 定义为actionMethods: { create : 'POST', read : 'GET', update : &# 阅读全文
posted @ 2013-05-26 20:16 xsSystem 阅读(787) 评论(0) 推荐(0)
  2013年5月24日
摘要: Ext.Ajax.request({ url : 'S/xs_markets/xs_markets_fy.data.asp?act=submit', async : true,//默认为false params : { edtRecData : Ext.JSON.encode(edtRecData) }, ... 阅读全文
posted @ 2013-05-24 15:38 xsSystem 阅读(389) 评论(0) 推荐(0)
摘要: 向服务器更新一个单元格,网上大多数教程是以下写法,构建参数然后AJAX提交给服务器处理grid单元格编辑,获取单元格对应 列名:eOpts.column.text列数:this.up('grid').view.headerCt.getColumnCount()EXTJS4 gridpanel中动态的显示/隐藏某个列http://www.cnblogs.com/zdkjob/archive/2013/04/28/3048968.html在extjs3中,大家知道用myGrid.getColumnModel().setHidden(i,true);但到了4.0后,已经没有getCo 阅读全文
posted @ 2013-05-24 15:16 xsSystem 阅读(675) 评论(0) 推荐(0)
摘要: 转:http://blog.sina.com.cn/s/blog_7778950d0100xgel.html 在发布的ExtJS4版本中,在data包中新增加了一个类Model(模型类)。这个类有点类似于ExtJS3.x中的record,但是新添加的Model的功能要比record类的功能强大的多, 阅读全文
posted @ 2013-05-24 03:04 xsSystem 阅读(342) 评论(0) 推荐(0)
  2013年5月23日
摘要: 取值formPanel.getForm().getValues()//所有值{name:value,name2,value2}formPanel.getForm().getValues().name//取一个指定值 阅读全文
posted @ 2013-05-23 23:55 xsSystem 阅读(214) 评论(0) 推荐(0)
摘要: 一:统计功能 1.获得总行数起始值为1:store.getCount(); 2.某列数字求和:store.sum('Fhtje');//参数字段名 3.遍历 store.each(function(record) { alert(record.get('name'));}); 二:载入数据 load 阅读全文
posted @ 2013-05-23 22:24 xsSystem 阅读(1715) 评论(0) 推荐(0)