Using a3r2 on firefox, with firebug,
executing this:
It creates the "loading" div, but doesn't return the new HTMLElement. A little investigation shows that insertHtml is returning " "- just a space. Hurt me when I was trying to use the return value in centering it (which I'm now doing with an Ext.get("loading"))
executing this:
Ext.DomHelper.insertHtml('beforeBegin', Ext.get('act').dom, '<div id="loading"><div class="loading-indicator"> Loading...</div></div> ')

|
#2
|
|
With beforeBegin it returns the "previousSibling" of the refNode. In your case that would a textNode with a space in it.
class="loading-indicator"> Loading...</div></div> ') <--- space at end ![]() |
本文探讨了在Firefox浏览器中使用Ext.DomHelper.insertHtml方法时遇到的问题:该方法未能返回新创建的HTML元素,而是返回了一个包含空格的文本节点。文章详细介绍了问题的背景及可能的原因。
516

被折叠的 条评论
为什么被折叠?



