微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

dojo.js的官方描述

Dojo

Dojo is divided into two parts: dojo.js ,and the rest of Dojo Core. Typically,if a function or Class exists within the dojo namespace directly (eg: dojo.require() ,dojo.addOnLoad() ) it is provided directly by dojo.js . If the function or Class exists beneath the dojo namespace (eg: dojo.dnd.Mover ),you will need to require the appropriate module (eg: dojo.require("dojo.dnd.Mover"); )

These pages cover both cases,and indicate how they are provided.

Base Dojo: dojo.js

Dojo Base is the functionality you get by just including a stock built dojo.js or dojo.xd.js in your page.

Configuring Dojo

  • djConfig

    Possibility to override certain global settings that control how the framework operates

Array utilities

Details on dojo.every,dojo.filter,dojo.forEach,dojo.indexOf,dojo.lastIndexOf,dojo.map,and dojo.some. See the Array QuickStart for an overview.

  • dojo.forEach

    Invokes a callback function for every item in array

  • dojo.map

    Applies a callback to each element of arr and returns an Array with the results

  • dojo.some

    Iterate over an array,escaping when the callback returns true for some logic check.

  • dojo.every

    Iterate over an array,escaping when the callback returns false for some logic check.

  • dojo.filter

    Iterate over an array,reducing the array based on the callback return.

  • dojo.indexOf

    Find the index of some element in an Array.

  • NodeList array methods

    • NodeList.indexOf,NodeList.lastIndexOf,NodeList.forEach,NodeList.every,NodeList.some,NodeList.concat,NodeList.map,NodeList.filter,NodeList.at

Language Utilities

String Utilities

DOM

Effects

Events

Document Lifecycle

Ajax / IO

Package System

JSON Tools

Objects / OO Tools

Colors

  • dojo._base.Color

    Color object and utility functions to handle colors. Details on

  • dojo.colorFromArray

  • dojo.colorFromHex

  • dojo.colorFromString

  • dojo.colorFromrgb.

Miscellaneous Base

Dojo Core

See also

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐