首页 > 其他 > 详细

Dojo - 操作Dom的函数

时间:2015-05-28 10:47:53      阅读:269      评论:0      收藏:0      [点我收藏+]

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()

Dojo - 操作Dom的函数

原文:http://www.cnblogs.com/hellocz/p/4535280.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!