ExtJs 学习随笔
转载本文请注明:转载自 天天成长的博客 http://www.ddgrow.com
1、如果panel可以展开和折叠,则需要为panel指定宽度(viewport注意点)
Expanding and collapsing a panel that does not have a width specified
can produce rendering problems. Therefore, it’s best to specify a width
for panels—of course this is not needed for the center, as this panel
automatically fills the remaining space.
{ region: 'center', xtype: 'tabpanel', items: [{ title: 'Movie Grid', html: 'Center' }] }
2、ExtJs 扩展组件ManageIframe
http://www.extjs.com/learn/ManageIframe:Manual:Frame_FAQ
http://www.extjs.com/forum/showthread.php?t=16590
3、ExtJs 更新树的某个节点
http://www.extjs.com/forum/showthread.php?t=3973
4、Extjs 在iframe中获取父页面的Ext对象
var pext = parent.Ext;对,就是这么简单
5、遍历js对象的所有方法和属性
我是使用了firfox的console控制台方法。如果你不使用firefox.自己处理一下就可以.比如 将所有属性 放到一个 变量中,最后再alert一下
function objProperties(obj) { var props = ""; for(var p in obj){ if(typeof(obj[p])=="function"){ console.debug('函数:'+obj[p]); }else{ console.debug("属性:"+ p + "=" + obj[p] + "\t"); } } }
6、ExtJs comboBox 设置发送到数据库的值
http://turgaykivrak.wordpress.com/2008/05/19/extjs-20-tip-how-to-make-combobox-send-value-field/
7、Ext获取输入域的值,及赋值
var v = Ext.get('输入域的ID').getValue(); Ext.get('输入域的ID').dom.value="想要的值";
转载本文请注明:转载自 天天成长的博客 http://www.ddgrow.com

近期评论