开发者

What is DomHelper in google closure?

开发者 https://www.devze.com 2022-12-20 10:37 出处:网络
Could somebody explain what is the meaning of DomHelper in google closure? What is it 开发者_开发百科for and how it may be useful?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消