dojo.js的官方描述

前端之家收集整理的这篇文章主要介绍了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

  • @H_403_40@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.

  • @H_403_40@dojo.forEach

    Invokes a callback function for every item in array

  • @H_403_40@dojo.map

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

  • @H_403_40@dojo.some

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

  • @H_403_40@dojo.every

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

  • @H_403_40@dojo.filter

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

  • @H_403_40@dojo.indexOf

    Find the index of some element in an Array.

  • @H_403_40@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

  • @H_403_40@dojo.fromJson

    Parses a JSON string to return a JavaScript object

  • @H_403_40@@L_403_86@

    Returns a JSON serialization of an object

Objects / OO Tools

Colors

  • @H_403_40@dojo._base.Color

    Color object and utility functions to handle colors. Details on

  • @H_403_40@dojo.colorFromArray

  • @H_403_40@dojo.colorFromHex

  • @H_403_40@dojo.colorFromString

  • @H_403_40@dojo.colorFromRgb.

Miscellaneous Base

Dojo Core

See also

  • @H_403_40@Dijit

    The widget system layered on top of Dojo

  • @H_403_40@DojoX

    An area for development of extensions to the Dojo toolkit

猜你在找的Dojo相关文章