Dojo - 操作Dom的函数

DOM Manipulation

You might be seeing a trend here if you have gotten this far in the tutorial, in that not only has Dojo abandoned its dependency on the global namespace and adopted some new patterns, it has also broken out some of "core" functionality into modules and what is more core to a JavaScript toolkit than DOM manipulation.

Well, that too has been broken up into much smaller chunks and modularized. Here is summary of the modules and what they contain:

ModuleDescriptionContains
dojo/dom Core DOM functions byId() isDescendant() setSelectable()
dojo/dom-attr DOM attribute functions has() get() set() remove() getNodeProp()
dojo/dom-class DOM class functions contains() add() remove() replace() toggle()
dojo/dom-construct DOM construction functions toDom() place() create() empty() destroy()
dojo/dom-form Form handling functions fieldToObject() toObject() toQuery() toJson()
dojo/io-query String processing functions objectToQuery() queryToObject()
dojo/dom-geometry DOM geometry related functions position() getMarginBox() setMarginBox() getContentBox() setContentSize() getPadExtents() getBorderExtents() getPadBorderExtents() getMarginExtents() isBodyLtr() docScroll() fixIeBiDiScrollLeft()
dojo/dom-prop DOM property functions get() set()
dojo/dom-style DOM style functions getComputedStyle() get() set()
posted @ 2015-05-28 10:36  helloCZ  阅读(267)  评论(0编辑  收藏  举报