Ext JS技术之面板实例二

来源:互联网 发布:类似网上邻居的软件 编辑:程序博客网 时间:2024/05/22 03:05

效果显示:



代码:

<!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:"hello",
width:300,
height:200,
html:'<h1>Hello,easyjf open source!</h1>',
tools:[{id:"save"},
{id:"help", handler:function(){Ext.Msg.alert('help','please help me!');}
},{id:"close"}],
tbar:[{pressed:true,text:'刷新'}]
});
})




</script>
</head>
<body>


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

0 0
原创粉丝点击