专栏首页gemrondojo toolkit 的query

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 with id="main" [1]

#main h3

All <h3> nodes that are contained by a node with id="main" [1]

div#main

Only select a node with id="main" if it is a <div>

div#main h3

All nodes that are <h3> contained in a <div> with an id="main"

#main div > h3

All <h3> nodes that are immediate children of a <div> contained within a node that has id="main" [1]

.foo

All nodes with a class="foo"

.foo.bar

All nodes that have both foo and bar classes

#main > h3

All <h3> nodes that are immediate children of a node with id="main"[1]

#main > *

All immediate children of a node with id="main" [1]

.foo > *

All immediate children of a nodes with a class="foo"

.foo, .bar

All nodes with a class="foo" or a class="bar"

[foo]

All nodes with an attribute of foo

[foo$=\"thud\"]

All nodes with an attribute of foo where the value ends in thud

[foo$=thud]

All nodes with an attribute of foo where the value ends in thud

[foo$=\"thudish\"]

All nodes with an attribute of foo where the value ends in thudish

#main [foo$=thud]

All nodes with an attribute of foo where the value ends in thud that are contained within a node with an id="main" [1]

#main [ title $= thud ]

All nodes with an attribute of title where the value ends in thud that are contained within a node with an id="main" [1]

#main span[ title $= thud ]

All <span> nodes with an attribute of title where the value ends inthud that are contained within a node with an id="main" [1]

[foo|=\"bar\"]

All nodes with an attribute of foo where the value contains bar in a dash seperated list (e.g. foo="baz-bar-qat")

[foo|=\"bar-baz\"]

All nodes with an attribute of foo where the value contains bar-baz in a dash seperated list (e.g. foo="qat-bar-baz-qip")

.foo:nth-child(2)

The 2nd children of nodes with a style="foo"

>

All immediate childen

> *

All immediate children

> [qux]

All immediate children that have an attribute of qux

.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 an id="foo" [1]

#foo ~

All nodes that are siblings that follow a node with an id="foo" [1]

#mainspan.foo:not(span:first-child)

All nodes that are a <span> with a class="foo" but not a <span> and the first child of a node with an id="foo".

#main span.foo:not(:first-child)

All nodes that are a <span> with a class="foo" but not the first child of a node with an id="foo". [1]

#main > h3:nth-child(odd)

All nodes that are <h3> and the odd immediate children of a node with an id="main" [1]

#main h3:nth-child(odd)

All nodes that are <h3> and are odd children contained within a node with an id="main" [1]

#main h3:nth-child(2n+1)

All nodes that are <h3>

#main h3:nth-child(even)

#main h3:nth-child(2n)

Every other nodes that are <h3>

#main2 > :checked

#main2 >input[type=checkbox]:checked

#main2 >input[type=radio]:checked

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Java平台,标准版Oracle JDK 9中的新功能

    Java Platform,Standard Edition 9是一个主要的功能版本。以下总结了Java SE 9和JDK 9的特点和增强功能,Oracle 对...

    gemron的空间
  • JAVA内存设置

    gemron的空间
  • Angular React Vue我应该选择什么?

    为 web 应用选择 JavaScript 开发框架是一件很费脑筋的事。现如今 Angular 和 React 非常流行,并且最近出现的新贵 VueJS 同样博...

    gemron的空间
  • 『中级篇』docker之CI/CD持续集成-CD演示(74)

    PS:基本的流程就是开发人员提交代码,自动构建,然后可以在ci服务器上访问,整个流程基本就是这样。

    IT故事会
  • 数据库结构版本控制

    数据库结构版本控制 http://netkiller.github.io/journal/mysql.struct.html 摘要 ---- 目录 1. 什么是...

    netkiller old
  • C-SATS工程副总裁教你如何用TensorFlow分类图像 part2

    我们都知道,适当的训练对于将来有效的分类来说至关重要,为了训练工作,我们需要大量准确标记的数据。在第一部分中,我通过下载3000个预先标记的图像跳过了这个挑战。...

    AiTechYun
  • 边缘计算是什么以及为什么需要它

    联合航空公司在登机口、跑道和飞机上的工作人员都掌握着重要的航班信息。医疗专业人员可以使用虚拟现实耳机和平板电脑来评估和监测运动员和士兵的大脑损伤,利用SyncT...

    边缘计算
  • Linux实现MySQL数据库数据自动备份,并定期删除以前备份文件

    虽说还没到正式工作坏境中,但是看到前几天顺丰快递的删库事件,emmm...打算弄个脚本实现MySQL自动备份,好歹省心点,从网上查了教程,亲身试验有效后,做个教...

    浩Coding
  • 常见的七种Hadoop和Spark项目案例你们了解了吗

    大数据中比较火爆的Hadoop、Spark和Storm,最常见的七种项目你们是否已经了解到位了呢,下面一起了解一下吧

    加米谷大数据
  • [linux][network]互联网后台模型

    前言: 虽然话题的范围有点大,但是在这里作者不打算谈框架,侃架构。 这里也只是作者最熟悉的一种后台架构模型。 并发模型: 多进程模型: 来一个请求,设定环境...

    皮振伟

扫码关注云+社区

领取腾讯云代金券