1:Ext.Element.update
update( String html ) : Ext.Element
Update the innerHTML of this element
Parameters
html : String
The new HTML
Returns
Ext.Element
this
这个方法更新该元素的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.Element
view source
load( Object options ) : Ext.Element
Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object parameter as Ext.ElementLoader.load
Parameters
options : Object
Returns:Ext.Element