来源http://www.akbkhome.com/blog.php/View/137/Developing_with_Extjs__tricks_and_tips.html 更有效的组合框 function myCombo() { this.Store = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: baseURL + '/MyLister.js' }), reader: new Ext.d ...
来源http://www.akbkhome.com/blog.php/View/137/Developing_with_Extjs__tricks_and_tips.html 表单 var ar = form.getValues(); 这个方法能取到表单中各域的值,但问题是这些键/值都经过编码了,需要增加解码才好处理 相应的方法则是: Ext.form.Form.prototype.getValuesRaw = function() { var ar = this.getValues(); var ret = {}; for(var i in ar) { ...
来源http://www.akbkhome.com/blog.php/View/137/Developing_with_Extjs__tricks_and_tips.html 接触Extjs's XMLHttpRequest 调用 Extjs's XMLHttpRequest 可以取代传统德XMLHttp来调用远程服务 例如: dialog.el.mask("Saving..."); var con = new Ext.data.Connection(); con.request({ url: baseURL + "/mypage.txt", // where to post to. ...
来源http://www.akbkhome.com/blog.php/View/137/Developing_with_Extjs__tricks_and_tips.html 定义对象: 下面是定义对象简单方式: aaa = { ccc: "test", bbb : function() { alert(this.cc); } } aaa.bbb(); 定义对象私有变量可以这样: aaa = (function () { var myprivate; return { setIt: function(val) { ...
tacone
搜索本博客
最近加入圈子
存档
最新评论