Ext JS技术之面板实例二

  1. 云栖社区>
  2. 博客>
  3. 正文

Ext JS技术之面板实例二

聚优云惠 2014-02-18 16:33:20 浏览408
展开阅读全文
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qingfeng812/article/details/19415617

效果显示:



代码:

<!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/500
评论
聚优云惠
+ 关注