欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ExtJS 2.0實(shí)用簡(jiǎn)明教程 之ExtJS版的Hello

 更新時(shí)間:2009年04月29日 14:29:23   作者:  
下面我們寫(xiě)一個(gè)最簡(jiǎn)單的ExtJS應(yīng)用,在hello.html文件中輸入下面的代碼
復(fù)制代碼 代碼如下:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ExtJS</title>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script>
Ext.onReady(function()
{
Ext.MessageBox.alert("hello","Hello,easyjf open source");
});
</script>
</head>
<body>
</body>
</html>


進(jìn)一步,我們可以在頁(yè)面上顯示一個(gè)窗口,代碼如下:
復(fù)制代碼 代碼如下:

<script>
Ext.onReady(function()
{
var win=new Ext.Window({title:"hello",width:300,height:200,html:'<h1>Hello,easyjf open source</h1>'});
win.show();
});
</script>

在瀏覽hello.html,即可得在屏幕上顯示一個(gè)窗口,如圖xxx所示。

相關(guān)文章

最新評(píng)論