
代码如下:
ExtJS script>
script>
Ext.onReady(function()
{
Ext.MessageBox.alert("hello","Hello,easyjf open source");
});
script>

进一步,我们可以在页面上显示一个窗口,代码如下:
代码如下:
Ext.onReady(function()
{
var win=new Ext.Window({title:"hello",width:300,height:200,html:'
Hello,easyjf open source
'});
win.show();
});
script>
在浏览hello.html,即可得在屏幕上显示一个窗口,如图xxx所示。