天天看點

Ext Js技術之面闆的初步使用

版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 https://blog.csdn.net/qingfeng812/article/details/19414655

效果顯示:

代碼:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<title>Hello Extjs4.2</title>

<link href="../ExtJS4.2/resources/css/ext-all-neptune.css" rel="stylesheet">

<!-- <script src="../ExtJS4.2/locale/ext-lang-zh_CN.js"></script> -->

<script src="../ExtJS4.2/ext-all.js"></script>

<script type="text/javascript">

Ext.onReady(function(){

new Ext.Panel({

renderTo:"hello",

title:"面闆頭部header",

width:300,

height:200,

html:'<h1>面闆主區域</h1>',

tbar:[{text:'頂部工具欄topToolbar'}],

bbar:[{text:'底部工具欄bottomToolbar'}],

buttons:[{text:"按鈕位于footer"}]

});

</script>

</head>

<body>

<div id="hello"></div>

</body>

</html>

繼續閱讀