Ext.Element.update和Ext.Element.load方法学习

来源:互联网 发布:木马源码分享吧 编辑:程序博客网 时间:2024/05/06 14:44
 

1:Ext.Element.update

 

update( String html ) : Ext.ElementUpdate the innerHTML of this elementParametershtml : StringThe new HTMLReturnsExt.Elementthis

这个方法更新该元素的innerHTML元素,有时遇到脚本便可以执行,该方法返回一个Ext.Element对象

<script type="text/javascript" >        Ext.onReady(function(){           Ext.get('test').update('我是一个程序员');        });             </script>  </head>    <body>    <div id="test"></div>  </body>


2:Ext.Element.load()方法

Ext.Elementview sourceload( Object options ) : Ext.ElementDirect access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object parameter as Ext.ElementLoader.loadParametersoptions : ObjectReturns:Ext.Element
原创粉丝点击