Ext.panel.Panel:这是允许在正常面板中添加项目的基本容器。

<!DOCTYPE html>
<html>
   <head>
      <link href="./ext-6.0.0-gpl/ext-6.0.0/build/classic/theme-classic/resources/theme-classic-all.css" rel="stylesheet">
      <script src="./ext-6.0.0-gpl/ext-6.0.0/build/ext-all.js"></script>
      <script type="text/javascript">
         Ext.onReady(function () {
          var childPanel1 = Ext.create('Ext.Panel', {
            html:'panel1'
          });

          var childPanel2 = Ext.create('Ext.Panel', {
            html: 'panel2' 
          });

          Ext.create('Ext.panel.Panel', {
            renderTo: Ext.getBody(),
            width: 100,
            height: 100,
            border: true,
            frame: true,
            items: [childPanel1, childPanel2]
          })
       });
      </script>
   </head>
   <body>
   </body>
</html>

零号
1 声望0 粉丝