Could somebody explain what is the meaning of DomHelper in google closure?
What is it 开发者_开发百科for and how it may be useful?
Thanks!
edit: Here is a more detailed answer
DomHelper
offers similar functionality to that provided by static utility methods within goog.dom
. The difference is that a DomHelper
instance can be bound to a document
object corresponding to a different window, such as an IFrame, or the parent frame. This basically allows UI controls to conduct their DOM manipulations within the confines of the correct window, even if the actual objects live in another.
Assuming you are referring to goog.dom.DomHelper - it looks like it provides an efficient, cross-browser solution to DOM manipulation.
精彩评论