Ext.get( String/HTMLElement/Ext.Element el ) : Ext.dom.Element

返回的是 Ext.dom.Element 对象。

Ext.getCmp( String id)

返回的是Ext.Component对象。也就是在js代码中定义的对象。

 

例如,使用这两个方法:

temp1 = Ext.getCmp("checkbox1");

temp2 = Ext.get("checkbox1");

则得到的结果如下:

ExtJS    Ext.get()和Ext.getCmp()的区别

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-07-13
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案