How to use Jquery $(“.something”) to select a class in ExtJS?

前端 未结 3 1814
不知归路
不知归路 2021-01-12 11:10

I\'m looking for an equivalent method to select a class element like this $(\".className\") in Jquery for ExtJS.

I understand that Ext.get() only takes in an id. Yo

3条回答
  •  太阳男子
    2021-01-12 11:42

    I think you are looking for:

    Ext.query(".className");
    

    This method allows you to get elements by the given query string like jQuery does.

    EDIT

    var els=Ext.query(".className"), ret=[];
    for(var i=0; i

提交回复
热议问题