dojo/dom-geometry
The dojo/dom-geometry class provides accessors for working with the geometry (sizes and
positions) of DOM nodes. Convention maps this package to the alias called "domGeom". Among
its many methods include:
• getContentBox(node) – Returns an object that contains.
{
w:
h:
l:
t:
}
• Others ...
Dojo Dates and Times
Dojo has a number of classes for working with dates and times. These augment the JavaScript
native date and time functions.
See also:
• JavaScript – Date object
• Working with Dates in Dojo – 1.9
dojo/date
This rich class contains a bunch of date manipulation functions.
• add(date, interval, amount) - Adds a time value to the current date. Setting a
negative value subtracts time. The interval can be one of the following values:
◦ "year"
◦ "month"
◦ "day"
◦ "hour"
◦ "minute"
◦ "second"
◦ "millisecond"
◦ "quarter"
◦ "week"
◦ "weekday"
• difference(date1, date2, interval) - Calculate the difference between two
dates in a variety of intervals. The interval can be one of:
◦ year
◦ month
◦ day
◦ hour
Page 145
Kommentare zu diesen Handbüchern