Alright, so been scratching my head a bit. I can't seem to find any documentation or definition in the code for Ext.getDom, yet I see it being called from a ton of Ext methods...
What is the difference between Ext.getDom and Ext.get, and where can i find the code/docs for this func?
What is the difference between Ext.getDom and Ext.get, and where can i find the code/docs for this func?

|
#2
|
getDom : function(el){
if(!el){
return null;
}
return el.dom ? el.dom : (typeof el == 'string' ? document.getElementById(el) : el);
},
![]() |
|
#3
|
|
Ext.getDom gets the actual DOM element while Ext.get gives you an Ext.Element object
![]() |
|
#4
|
|
I figured as much, thanks for the info!
![]() |
Ext.getDom与Ext.get的区别
本文探讨了Ext.getDom和Ext.get两个方法的区别。Ext.getDom用于获取实际的DOM元素,而Ext.get则返回一个Ext.Element对象。文章通过代码示例详细解释了两者的用法及区别。
132

被折叠的 条评论
为什么被折叠?



