dojo toolkit 的query

h3 All nodes that are heading level 3
h3:first-child All nodes that are the first children of a<h3>header
#main A node withid="main"[1]
#mainh3 All<h3>nodes that are contained by a node withid="main"[1]
div#main Only select a node withid="main"if it is a<div>
div#mainh3 All nodes that are<h3>contained in a<div>with anid="main"
#maindiv>h3 All<h3>nodes that are immediate children of a<div>contained within a node that hasid="main"[1]
.foo All nodes with aclass="foo"
.foo.bar All nodes that have bothfooandbarclasses
#main>h3 All<h3>nodes that are immediate children of a node withid="main"[1]
#main>* All immediate children of a node withid="main"[1]
.foo>* All immediate children of a nodes with aclass="foo"
.foo,.bar All nodes with aclass="foo"or aclass="bar"
[foo] All nodes with an attribute offoo
[foo$=\"thud\"] All nodes with an attribute offoowhere the value ends inthud
[foo$=thud] All nodes with an attribute offoowhere the value ends inthud
[foo$=\"thudish\"] All nodes with an attribute offoowhere the value ends inthudish
#main[foo$=thud] All nodes with an attribute offoowhere the value ends inthudthat are contained within a node with anid="main"[1]
#main[title$=thud] All nodes with an attribute oftitlewhere the value ends inthudthat are contained within a node with anid="main"[1]
#mainspan[title$=thud] All<span>nodes with an attribute oftitlewhere the value ends inthudthat are contained within a node with anid="main"[1]
[foo|=\"bar\"] All nodes with an attribute offoowhere the value containsbarin a dash seperated list (e.g.foo="baz-bar-qat")
[foo|=\"bar-baz\"] All nodes with an attribute offoowhere the value containsbar-bazin a dash seperated list (e.g.foo="qat-bar-baz-qip")
.foo:nth-child(2) The 2nd children of nodes with astyle="foo"
> All immediate childen
>* All immediate children
>[qux] All immediate children that have an attribute ofqux
.foo+span All nodes that are a<span>that are directly after a node with astyle="foo"
.foo~span All nodes that are a<span>that are siblings that follow a node with astyle="foo"
#foo~* All nodes that are siblings that follow a node with anid="foo"[1]
#foo~ All nodes that are siblings that follow a node with anid="foo"[1]
#mainspan.foo:not(span:first-child) All nodes that are a<span>with aclass="foo"but not a<span>and the first child of a node with anid="foo".
#mainspan.foo:not(:first-child) All nodes that are a<span>with aclass="foo"but not the first child of a node with anid="foo".[1]
#main>h3:nth-child(odd) All nodes that are<h3>and the odd immediate children of a node with anid="main"[1]
#mainh3:nth-child(odd) All nodes that are<h3>and are odd children contained within a node with anid="main"[1]
#mainh3:nth-child(2n+1) All nodes that are<h3>
#mainh3:nth-child(even)
#mainh3:nth-child(2n) Every other nodes that are<h3>
#main2>:checked
#main2>input[type=checkBox]:checked
#main2>input[type=radio]:checked

相关文章

我有一个网格,可以根据更大的树结构编辑小块数据.为了更容易...
我即将开始开发一款教育性的视频游戏.我已经决定以一种我可以...
我正在使用带有Grails2.3.9的Dojo1.9.DojoNumberTextBox小部...
1.引言鉴于个人需求的转变,本系列将记录自学arcgisapiforja...
我正在阅读使用dojo’sdeclare进行类创建的语法.描述令人困惑...
我的团队由更多的java人员和JavaScript经验丰富组成.我知道这...