extjs学习笔记

参考资料: http://www.cnblogs.com/iamlilinfeng/archive/2012/06/18/2553627.html


1、基础部署(helloworld)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>extjs example</title>
<script type="text/javascript" src="../js/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../js/ext/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href = "../js/ext/resources/css/ext-all.css"/>
<script type="text/javascript">
    Ext.onReady(function(){
        Ext.MessageBox.alert('title','message');
    });
</script>
</head>
<body>
</body>
</html>


2、窗体组件(Window)

<script type="text/javascript">
Ext.onReady(function () {
  var win = new Ext.Window({
  title: '窗口',
  width: 476,
  height: 374,
  html: '<div>这里是窗体内容</div>',
  resizable: true,
  modal: true,
  closable: true,
  maximizable: true,
  minimizable: true
});
win.show();
});
</script>


2、表单(FormPanel)

<script type="text/javascript">
         Ext.onReady(function () {
             var form = new Ext.form.FormPanel({
                 frame: true,
                 title: '表单标题',
                 style: 'margin:10px',
                 html: '<div style="padding:10px">这里表单内容</div>'
             });
             var win = new Ext.Window({
                 title: '窗口',
                 width: 476,
                 height: 374,
                 html: '<div>这里是窗体内容</div>',
                 resizable: true,
                 modal: true,
                 closable: true,
                 maximizable: true,
                 minimizable: true,
                 items: form
             });
             win.show();
         });
     </script>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值