SlideShare une entreprise Scribd logo
1  sur  10
jQuery Tree Traversal

        drake
.children() v.s .find()
.parents() v.s .closest()
$(‘li.item-a’).closest(‘ul’)
$(‘li.item-a’).parents(‘ul’)

$(‘li.item-a’).closest(‘li’)
$(‘li.item-a’). parents(‘li’)
.siblings()
.next() v.s .nextAll() v.s
      nextUntil()
.prev() v.s .prevAll() v.s
      .prevUntil()
.prevUntil() v.s parentsUntil()

Contenu connexe

En vedette

What is new in visual studio 2015
What is new in visual studio 2015What is new in visual studio 2015
What is new in visual studio 2015LearningTech
 
Ian 20150116 java script oop
Ian 20150116 java script oopIan 20150116 java script oop
Ian 20150116 java script oopLearningTech
 
Power shell object
Power shell objectPower shell object
Power shell objectLearningTech
 
20121228 jQueryui - datepicker - By Jason
20121228 jQueryui - datepicker - By Jason20121228 jQueryui - datepicker - By Jason
20121228 jQueryui - datepicker - By JasonLearningTech
 

En vedette (10)

flexbox report
flexbox reportflexbox report
flexbox report
 
What is new in visual studio 2015
What is new in visual studio 2015What is new in visual studio 2015
What is new in visual studio 2015
 
Ian 20150116 java script oop
Ian 20150116 java script oopIan 20150116 java script oop
Ian 20150116 java script oop
 
Mvc route
Mvc routeMvc route
Mvc route
 
Power shell object
Power shell objectPower shell object
Power shell object
 
React.js 20150828
React.js 20150828React.js 20150828
React.js 20150828
 
20121228 jQueryui - datepicker - By Jason
20121228 jQueryui - datepicker - By Jason20121228 jQueryui - datepicker - By Jason
20121228 jQueryui - datepicker - By Jason
 
Expression tree
Expression treeExpression tree
Expression tree
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 

Plus de LearningTech

Plus de LearningTech (20)

vim
vimvim
vim
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection & activator
Reflection & activatorReflection & activator
Reflection & activator
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 
Asp.net MVC DI
Asp.net MVC DIAsp.net MVC DI
Asp.net MVC DI
 
Vic weekly learning_20151127
Vic weekly learning_20151127Vic weekly learning_20151127
Vic weekly learning_20151127
 
Mocha.js
Mocha.jsMocha.js
Mocha.js
 
R language
R languageR language
R language
 
20151120 ian cocos2d js
20151120 ian cocos2d js20151120 ian cocos2d js
20151120 ian cocos2d js