admin管理员组

文章数量:1389772

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

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

Share Improve this question edited Feb 19, 2010 at 17:09 Evgeny asked Feb 18, 2010 at 22:36 EvgenyEvgeny 10.9k10 gold badges62 silver badges72 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

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.

本文标签: javascriptWhat is DomHelper in google closureStack Overflow