2013-04-30 2 views
0

jQuery에 내가 익숙한 곳은 $('pre').toggle()입니다. ExtJS와 가장 비슷한 것은 무엇입니까? 4.1.1.1 버전을 사용하고 있습니다.ExtJS는 많은 요소를 전환합니까?

Ext.flyExt.dom.Query.select 사이에서 전환이 손실되었습니다.

답변

1

Ext.select (선택기, [고유], [루트])을 사용할 수 있습니다. 예 :

Ext.select('pre').toggle(); 

추가 예 : 엽차 워드 프로세서에

Ext.select ('div: first'); // select a first div 
Ext.select ('div: last'); // select a last div 
Ext.select ('div: even'); // fetch even div 
Ext.select ('div: odd'); // fetch the odd div containing the 'bar' 
Ext.select ('input: checked]'); // select all input c checked = true 
Ext.select ('div {display = none}'); // select all the div with CSS-style display = none 
Ext.select ('div {display! = None}'); // select all the div with CSS-style display! = None 
Ext.select ('div {height% = 2}') // select all the div with CSS-style in which the height is divided into two 
Ext.select ('div: not (form)') // fetch div, not containing a form 
Ext.select ('div: has (a)') // fetch div, containing a link 
Ext.select ('input: checked') // select all checked checkboxes 

선택기 : http://docs.sencha.com/extjs/4.1.1/#!/api/Ext.dom.Query

Ext.fly() 메소드는 차이, Ext.get()과 유사한 그것은 가비지 콜렉션에 최적화되어있다. 개발자는 결과 DOM 요소를 다시 사용할 필요가없는 경우이를 사용하는 것이 좋습니다.