ExtJS - How to get DOM ID of a component?
问题 Say the component doesnt have an ID given to it. So how would you first, get a handle on the component, and then get the DOM Id of that component? thanks in advance! -Jack 回答1: Use the javascript console. You can also install FireBug. In your javascript code put: console.log(myComponentWhosIdIWantToGet); Explore you object's properties. 回答2: I believe this is what you need: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Component-method-getEl Example: //get Dom Element var DomEl = Ext.getCmp(