2019-08-27 15:13题主

各位老师请问一下如何向Html里面添加动态数据

知道要在afterrender里面添加代码,具体怎么做不是很清楚,下面代码有问题,请老师指出错误改正一下。


2019-08-28 09:07#1
在WebBuilder中可以直接使用Ext element来操作dom,比jquery功能强大
获得element可以使用Ext.get(id/dom)或Ext.fly(id/dom),后者不生成element对象仅调用接口
更新html,可以使用element.update(html);此外相关的方法有:
el, [returnDom] ) : Ext.dom.AbstractElement
Appends the passed element(s) to this element Defined in override Ext.dom.AbstractElement_insertion. ...
Appends this element to the passed element Defined in override Ext.dom.AbstractElement_insertion. ...
Inserts this element after the passed element in the DOM Defined in override Ext.dom.AbstractElement_insertion. ...
Inserts this element before the passed element in the DOM Defined in override Ext.dom.AbstractElement_insertion. ...
Inserts (or creates) an element (or DomHelper config) as the first child of this element Defined in override Ext.dom...
Inserts an html fragment into this element Defined in override Ext.dom.AbstractElement_insertion. ...
Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element Defined in override Ext.d...

2019-08-28 09:14#2
另外在论坛中贴java ,js ,css, html, sql, xml等代码不要使用图片,使用【插入代码片断】按钮插入。

返回开发者社区