dojo query

AP发票批量付款程序(WEB ADI) CREATE OR REPLACE PACKAGE MEW_AP_BATCH_PAYMENTS_PKG IS   PROCEDURE MAIN(P_BATCH_ID          NUMBER                 ,P_ORG_ID            NUMBER                 ,P_BANK_ACCOUNT_NAME VARCHAR2 阅读详情

dojo/query returns a list of DOM nodes based on a CSS selector.

Introduction

dojo/request and XHR is half of the AJAX story. Once you make a request for data and receive a response, you must change the page. Being able to change the HTML is dependent on locating nodes.

To select DOM nodes in JavaScript, you can use the browser’s native DOM API, but it’s verbose and hard to work with, slow and can differ across browser. For example, retrieving all nodes with the class “progressIndicator” uses this code:

// list every node with the class "progressIndicator":
var list = [];
var nodes = document.getElementsByTagName("*");
// iterate over every node in the document....SLOOOW
for(var x = 0; x < nodes.length; x++){
  // only nodes with the class "progressIndicator":
  if(nodes[x].className == "progressIndicator"){
    // add to array:
    list.push(nodes[x]);
  }
}
console.log(list);

dojo/query gives us a more compact way to do it, and it is often faster, particularly as we ask for more sophisticated kinds of relationships. The following is essentially equivalent to our first example:

require(["dojo/query"], function(query){
  console.log(query(".progressIndicator"));
});

Usage

Requring in the module is all that is needed:

require(["dojo/query"], function(query){
  var nl = query(".someClass");
});

dojo/query returns an instance of NodeList, which is essentially a JavaScript Array that has been decorated with functions that make it easier to utilise. There are extensions of the base NodeList that are available to provide additional functionality:

The first argument is the selector which is a CSS selector string that identifies the nodes that need to be retrieved. The second argument is an optional context which limits the scope of the selector and only children of the will be considered. This can either be a string representing the node ID or a DOM node. For example:

require(["dojo/query", "dojo/dom"], function(query, dom){
  var nl = query(".someClass", "someId");
  // or
  var node = dom.byId("someId");
      nl = query(".someClass", node);
});

dojo/query and NodeList are specifically designed with chaining in mind. Most functions on NodeListreturn an instance of NodeList. For example:

require(["dojo/query", "dojo/NodeList-dom"], function(query){
  query("li").forEach(function(node){
    node.innerHTML = "Something";
  }).style("color", "red")
    .style("fontSize", "12px");
});

Selector Engines

dojo/query is responsible for loading the appropriate selector engine. There are several different modes which dojo/query can run in:

  • css2 (or lite) - This will always use the lite engine, which delegates to the native selector engine if available for anything but very simple queries (like id lookups). When a native selector engine is not available ( IE7 and below), this supports simple, basic CSS2 level queries, consisting of elemental selectors: .class, #id, tag, and *, attribute selectors, and child (>), descendant (space), and union (,) combinators. If the native selector engine is, the engine does not support pseudo classes.
  • css2.1 - This will always use the lite engine when a native selector engine is available. When a native selector engine is not available (IE7 and below), this will load acme.
  • css3 - This will always use the lite engine when a native selector engine with significant CSS3 support is available. When a CSS3 capable (supporting most features) native selector engine is not available (IE8 and below), this will load acme.
  • acme - The acme selector engine with full CSS3 features will be used. This supports certain features that are not available in any native engine (albeit rarely used).

When you are running Dojo in legacy mode (async: false), dojo/query will run in acme mode. When you are running with async: true the default selector engine level is css3.

The summarize, the two alternate selector engines included with Dojo have the following features (which can be selected explicitly or by the module’s CSS level needs):

  • acme - Designed to have full CSS3 support, it is about 14KB (minified).
  • lite - Basic CSS2 level queries, consisting of elemental selectors: .class, #id, tag, and *, attribute selectors, and child (>), descendant (space), and union (,) combinators. With a native selector engine, the lite engine does not support pseudo classes. It is about 2KB (minified).
Specifying the Selector Level

The selector level can be controlled though various mechanisms. The default selector level can be specified in the build profile (see Dojo Builder). The selector engine can be specified as part of your Dojo configuration:

<script data-dojo-config="selectorEngine: 'css2.1', async: true" src="dojo/dojo.js">
</script>

Or:

<script type="text/javascript">
  var dojoConfig = {
    selectorEngine: "css2.1",
    async: true
  };
</script>
<script src="dojo/dojo.js">

The selector engine level can be specificed as a loader plugin for each module. For example, if the module needed to do a CSS3 level query, you could write:

define(["dojo/query!css3"], function(query){
    query(".someClass:last-child").style("color", "red");
});

If Dojo had started with the lite engine, this will ensure that CSS3 support is available, and will loadacme on older browsers. It is recommended that you use this syntax for modules that explicitly need more complex queries. If your module is using a simpler query, then "dojo/query" or"dojo/query!css2.1" should be used.

Selector Support

The following tables summerize selector engine levels and their support.

Standard CSS2 Selectors

These selectors can be used with any selector engine.

Pattern Meaning
* any element
E an element of type E
E F an F element descendant of an E element
E > F an F element child of an E element
E:link  
E:visited an E element being the source anchor of a hyperlink of which the target is not yet visited (:link) or already visited (:visited)
E:active  
E:hover  
E:focus an E element during certain user actions
E[foo] an E element with a “foo” attribute
E[foo=”bar”] an E element whose “foo” attribute value is exactly equal to “bar”
E[foo~=”bar”] an E element whose “foo” attribute value is a list of space-separated values, one of which is exactly equal to “bar”
E[hreflang|=”en”] an E element whose “hreflang” attribute has a hyphen-separated list of values beginning (from the left) with “en”
E:lang(fr) an element of type E in language “fr” (the document language specifies how language is determined)
E.warning an E element whose class is “warning” (the document language specifies how class is determined).
E#myid an E element with ID equal to “myid”.
S1, S2 union of two selectors, ex: div, span
Additional Selectors Supported By Lite Engine

These selectors are not part of CSS2, but are supported by the lite engine, so effectively then can also be used with any specified selector engine.

Pattern Meaning
E[foo^=”bar”] an E element whose “foo” attribute value begins exactly with the string “bar”
E[foo$=”bar”] an E element whose “foo” attribute value ends exactly with the string “bar”
E[foo*=”bar”] an E element whose “foo” attribute value contains the substring “bar”
Standard CSS2.1 Selectors

To use these selectors, you must specify the css2.1, css3, or acme selector engine.

Pattern Meaning
E:first-child an E element, first child of its parent
E + F an F element immediately preceded by an E element
Standard CSS3 Selectors

To use these selectors, you must specify the css3 or acme selector engine.

Pattern Meaning
E ~ F an F element preceded by an E element
E:nth-child(n) an E element, the n-th child of its parent
E:checked a user interface element E which is checked (for instance a radio-button or checkbox)
E:empty an E element that has no children (including text nodes)
E:root an E element, root of the document
E:nth-last-child(n) an E element, the n-th child of its parent, counting from the last one
E:nth-of-type(n) an E element, the n-th sibling of its type
E:nth-last-of-type(n) an E element, the n-th sibling of its type, counting from the last one
E:last-child an E element, last child of its parent
E:first-of-type an E element, first sibling of its type
E:last-of-type an E element, last sibling of its type
E:only-child an E element, only child of its parent
E:only-of-type an E element, only sibling of its type
E:target an E element being the target of the referring URI
E:enabled  
E:disabled a user interface element E which is enabled or disabled
E::first-line the first formatted line of an E element
E::first-letter the first formatted letter of an E element
E::selection the portion of an E element that is currently selected/highlighted by the user
E::before generated content before an E element
E::after generated content after an E element
E:not(s) an E element that does not match simple selector s

Alternate Selector Engines

We can also use other selector engine levels. Both Sizzle and Slick are excellent selector engines that work with dojo/query. AMD/Dojo compatible versions (just wrapped with AMD) are available here:

Once installed, you can use the selector engine module id as specified selector engine level. We could set Sizzle as the query engine for our page:

<script data-dojo-config="selectorEngine: 'sizzle/sizzle'" src="dojo/dojo.js">
</script>

or set Slick as the engine for a particular module:

define(["dojo/query!slick/Source/slick"], function(query){
  query(".someClass:custom-pseudo").style("color", "red");
});
Note for cross-domain legacy API usage

This use case should be quite rare, but presents a wrinkle worth noting.

When loading dojo.js cross-domain and electing to use an alternate selector engine not included indojo.js itself, legacy APIs will not immediately work, since Dojo base does not finish loading until the selector engine is pulled in asynchronously. In this case, it will be necessary to use require. In a pinch, legacy code can simply be wrapped like so:

require(["dojo"], function(dojo){
  dojo.require(/* ... */);
  // etc...
});

Again, this issue only affects use of legacy APIs when a selector engine is used which is not baked intodojo.js.

Examples

Example Selector Queries

The following tables provide example selector queries and what sort of nodes they would select.

Query Description
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  
使用ChIPSeeker进行ChIP-seq, ATAC-seq,cut&tag等富集峰的基因组注释 常规的下一代高通量测序(next generation sequencing, NGS)实验通常产生大量短片段(reads),通常我们需要将这些reads比对到参考基因组/转录组上,即将它们置于生物学上有意义的基因背景下,才能获得有意义的结果。一般我们认为会产生两种类型的数据(当然两者并无严格意义上的区分) 阅读详情

相关推荐

基于Python的信用卡欺诈检测机器学习案例报告

当今时代,在线支付已成为一种高效便捷的支付方式,我们可以突破时间和空间的限制,输入我们的信用卡各项信息就可以完成在线支付。但随之而来的是这种支付方式也具备一定的风险性,我们无法辨别对方是否是恶意套取我们资金的非法分子。当信用卡信息数据泄露导致金钱失窃并最终失去客户忠诚度和公司声誉时,组织、消费者、银行和商家都会面临风险。2017 年,未经授权的信用卡操作达到了惊人的 1670 万受害者。此外,据美国联邦贸易委员会 (FTC) 报告,2017 年信用卡欺诈索赔数量比上一年高出 40%。

weixin_45673389的博客 6713

Dojo Query 简介

简介: 在 Web 应用程序开发中,JavaScript 的应用越来越普遍,越来越复杂,一个 Web 页面中往往有成百上千个 HTML 元素,准确、高效地选择所需的元素并对其进行操作,不仅可以在程序开发阶段节省编码时间,降低程序出错的概率,在运行还能提高程序运行效率,提供更好的用户体验。Dojo 提供了功能强大的 Query 函数库,使用一个高效的查询引擎,能够根据元素 id,名称,CSS,属

dragonzoebai的专栏 855

UniApp实战:从文件下载到本地保存与预览的一站式解决方案

本文深入解析了UniApp开发中文件下载、保存与预览的完整流程,提供了基于uni.downloadFile、uni.saveFile和uni.openDocument API的一站式实战解决方案。文章详细拆解了核心API的使用方法、多平台(App、H5)的兼容性处理、常见坑点(如文件路径、权限、格式支持)以及进阶优化技巧(如进度提示、文件管理),旨在帮助开发者构建健壮、用户体验良好的跨平台文件处理功能。

d3e4f的博客 626

DOJO QUERY 查询

*任何元素dojo.query("*") E标签为E的元素dojo.query("div") .C带有类C的元素dojo.query(".baz") E.C标签为E且带有类C的元素dojo.query("div.baz") #IDID值为ID的元素dojo.query("#quux") E#ID标签为E且ID值为ID的元素dojo.query("...

weixin_30521649的博客 147

计算机图形学入门30:动画与模拟介绍

计算机图形学入门,动画与模拟,物理模拟,质点弹簧系统,运动学,粒子系统,动作捕捉。

YanisWu的博客 1490

从门禁到支付:Uniapp+NFC开发避坑指南(支持Mifare Classic)

本文详细介绍了Uniapp结合NFC技术开发门禁与支付系统的实战指南,特别针对Mifare Classic卡片进行深度优化。内容涵盖环境配置、设备兼容性处理、卡片安全机制解析以及高性能读写优化策略,帮助开发者快速实现跨平台的智能硬件交互解决方案。

t1u2v的博客 757

Dojo 1.6 最新官方教程: 如何使用dojo.query 进行DOM查询和批量操作

在本讲义中,我们将学到DOM的查询,以及如何使用dojo.query来方便的查找并操作DOM节点。难度:初学者  适用的Dojo 版本: 1.6作者: Bryan Forbes译者: feijia原文连接: http://dojotoolkit.org/documentation/tutorials/1.6/using_query/ 入门对DOM编程的一个关键要素是能够快速高效的获取到你所要使用的节点。之前我们曾经介绍过使用dojo.byId来查找DOM节点的方法。但是,这种方法的局限性也很明显。你很难为页

Dojo中文博客 1万+

16、Arduino MEGA 2560 固件与电路详解

本文详细介绍了Arduino MEGA 2560的固件编程与电路设计,涵盖ATmega16U2和ATmega2560的熔丝配置、stk500v2引导加载程序的备份与恢复方法、使用Microchip Studio通过ICSP烧录固件的步骤,以及debugWIRE和JTAG调试接口的选择与配置。同时提供了电路块图解析、组件位置参考及常见问题解决方案,帮助用户深入理解硬件结构并进行高效开发与调试。

swift5iosmith的博客 202

dojo query 基本用法

1. 常用的 dojo.query 用法  dojo.query("#header > h1")  //ID 为 header 的元素的直接子节点中的 h3 元素   dojo.query("span[title^='test']") // 属性 title 以字符串 test 开头的 span 元素   dojo.query("div[id$='widget']") // 属性 id ...

mojianpo 莫建坡 390

sec_uid

webcast_uid转sec_uid,webcast_uid转uid,webcast_uid转dy号

m0_56967679的博客 4436

MuJoCo 入门教程(一)

在 MuJoCo 仿真中输入自定义数字有三种方法。首先,可在 XML 中定义全局数字字段。它们有一个名称和一个实数值数组。其次,可以通过特定元素的自定义数组来扩展某些模型元素的定义。具体方法是在 XML 元素大小中设置 nuser_XXX 属性。第三,数组 mjData.userdata 不用于任何 MuJoCo 计算。用户可以在这里存储自定义计算的结果;请记住,所有随时间变化的内容都应存储在 mjData 中,而不是 mjModel 中。自定义文本字段可以保存在模型中。

机器人控制与仿真应用 1万+

dojo中的query

以前用query去获取节点绑定事件时,总是返回一个数组,绑定事件时绑定不了当前点击目标的事件,我只能加个通过a是否悬浮来判断当前节点是否是点击目标。 但现在可以             //帮助提醒             query(".cust_help_img").forEach(function(res){                 res.onclick=function()

cly153239的专栏 448

马达种类全解析:VCM、Stepper、Piezo 在手机相机中的驱动原理与工程差异

在现代手机影像系统中,马达承担着核心成像组件的动态调节任务,如自动对焦(AF)、光学防抖(OIS)以及变焦调节。目前主流采用三类驱动器件:VCM(Voice Coil Motor)、Stepper(步进马达)、Piezo(压电马达)。不同马达方案在结构复杂度、响应速度、功耗、驱动方式与模组厚度适配等方面差异显著,对成像系统的性能表现有直接影响。本文将结合最新旗舰设备的应用现状,系统剖析这三类驱动马达的工作原理、架构特点与工程应用经验,为工程实践中选型与调试提供参考。

努力分享一些人工智能、计算机视觉、影像等相关的知识干货! 3834

dojo 六 使用query dojo/query

要使用query,就要引入dojo/query包。query可以根据Dom里节点的标签名、id名、class名来检索一个或多个节点。-------------------------------------------------------------------------------------------- <ul id="list"> <...

weixin_30611509的博客 96

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

dojo query 实现Ajax,dojo/query

Requring in the module is all that is needed:require(["dojo/query"], function(query){var nl = query(".someClass");});require(["dojo/query"], function(query){var nl = query(".someClass");});dojo/query ...

weixin_39559382的博客 209

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

dojo中的query选择器

dojo/dom模块中只能通过DOM的ID属性来选择DOM元素,这远远不能满足我们的要求。因此,dojo/query模块中提供了更多的选择方法。该模块中大致可分为7类选择器: 基本选择器 层次选择器 内容过滤选择器 属性选择器 子元素过滤选择器 表单对象属性过滤选择器 表格选择器 query模块选择的是一个DOM数组(哪怕只有一个DOM元素也是数组)...

shiyangxu的博客 975

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

dojo 学习笔记之dojo.query - query(id) 与query(class)的区别

考虑这个例子:动态创建一个页面的时候,用new listtem()生成多个listitem, 且每个listitem中都生成一个按钮button。 如果想要给每个按钮都绑定一个click事件,用dojo.query来获取这些button是比较方便的。 这样做的时候我遇到一个问题, 在create这些button的循环语句中我给每个button 定义了id = "somebtn" 。

¥ = C^2 + C++ 1929

使用dojo/query

当我们操作DOM时快速高效的检索 节点时非常重要的。我们之前使用dom.byId。然而为我们感兴趣的每个节点指定一个唯一的Id 是一个可怕的和不切实际的工作。使用ID查找和操作多个节点是效率低下的。 还好我们有另一个解决方案dojo/query模块。 dojo/query使用我们熟悉的css选择器 检索一系列的节点。包括对先进的CSS3 选择器的支持。 查询 为了展示一些常用的查询,我们将

giveyousool的专栏 2683

dojo.byId、dojo.query、dojo.attr

概述: dojo.byId(/*string*/id或/*DomNode*/node) 1.传入DOMNode返回传入的domNode; 2.传入id返回id为当前值的domNode dojo.query(/*string*/selector,/*string*?/id||/*DOMNode*?/node) 1.返回NodeList集合; 2.第一个参数为CSS selector s...

weixin_34015336的博客 309

使用 dojo/query

在本篇文章中,我们将了解DOM的查询以及如何运用dojo/query这个模块来轻松地选择节点并操作他们。 入门指南 在操作DOM的过程中,如何快速高效地检索出DOM节点显得相当重要。我们在Dojo DOM Functions中已经熟悉了 dom.byId,然而,在应用程序里找出每一个感兴趣的节点的唯一ID是项繁琐且易错的工作。并且仅靠ID的方式来选择大量节点的效率可见是低下的。所以,...

weixin_30445169的博客 188

dojo query基本用法

1. 常用的 dojo.query 用法 dojo.query("#header > h1")  //ID 为 header 的元素的直接子节点中的 h3 元素  dojo.query("span[title^='test']") // 属性 title 以字符串 test 开头的 span 元素  dojo.query("div[id$='widget']") // ...

weixin_33811961的博客 114

dojo1.7翻译 搜索节点功能(Using dojo/query)

原文地址:http://dojotoolkit.org/documentation/tutorials/1.7/using_query/   在本教程中,我们将学习dojo/query模块的搜索功能。   开始 在操作DOM对象中,一项重要的功能就是对节点的快速有效的检索。我们可以使用dom.byId来搜索一个指定ID的节点。但对于多个节点的操作这种做法显的有点繁琐,因为你要为每个你想要...

幽空命记 186

Dojo query 库

Dojo Query 库的核心是一个 dojo.query 函数,该函数接收一个查询字符串,以及一个可选的 DOM 节点作为参数,返回一个 NodeList 对象。一方面我们可以通过 id,元素名称,属性,CSS 等及其组合设置精巧的查询字符串准确控制返回的结果,另一方面返回的 NodeList 对象提供了丰富的操作接口,对其调用的很多方法(如 addClass)都可以直接作用于所有的元素,并且...

qingfeng_825的专栏 229

DOJO之dojo.query、JSON树(结构)、dojo读取json

老外这么说: dojo.query() is the swiss army knife of DOM node manipulation in Dojo. Much like Prototype’s “$$” (bling-bling) function or JQuery’s “$” function, dojo.query provides robust, high-performance C...

weixin_30411997的博客 191

(原)DOJO之dojo.query、JSON树(结构)、dojo读取json

老外这么说: dojo.query() is the swiss army knife of DOM node manipulation in Dojo. Much like Prototype’s “$$” (bling-bling) function or JQuery’s “$” function, dojo.query provides robust, high-performance ...

wangsong76的专栏 363

Dojo学习笔记(三):使用dojo/query

操作dom时,可以使用dom.byId,缺陷是需要为每一个元素指定唯一ID,是一个可怕的和不切实际的工作。另一个解决方案,采用dojo/query模块。dojo/query使用我们熟悉的css选择器 检索一系列的节点。包括对先进的CSS3 选择器的支持。 1、查询 css/demo.css文件 1 2 3 4 5 6 7 8 9 10 11...

weixin_34060741的博客 255
上一篇: 如何更优雅的实现ExtJS的前端MVC模式下一个App多个Controller的动态加载
下一篇: dojo.declare 详解
Mr_小白不白
博客等级 码龄17年 27粉丝 36原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值