zx |
用户名称: | lalalaa |
加入日期: | 2019-08-14 09:54 |
登录次数: | 29 |
|
各位老师请问一下如何向Html里面添加动态数据 知道要在afterrender里面添加代码,具体怎么做不是很清楚,下面代码有问题,请老师指出错误改正一下。
|
Zhao WJ |
用户名称: | zhaowj |
加入日期: | 2011-05-02 12:07 |
登录次数: | 2356 |
|
在WebBuilder中可以直接使用Ext element来操作dom,比jquery功能强大 获得element可以使用Ext.get(id/dom)或Ext.fly(id/dom),后者不生成element对象仅调用接口 更新html,可以使用element.update(html);此外相关的方法有: 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...
|
Zhao WJ |
用户名称: | zhaowj |
加入日期: | 2011-05-02 12:07 |
登录次数: | 2356 |
|
另外在论坛中贴java ,js ,css, html, sql, xml等代码不要使用图片,使用【插入代码片断】按钮插入。 |