案例:Extjs案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
   <link href="//cdn.bootcss.com/extjs/6.2.0/classic/theme-classic/resources/theme-classic-all.css" rel="stylesheet" />
5
   <script type="text/javascript" src="//cdn.bootcss.com/extjs/6.2.0/ext-all.js"></script>
6
   <script type="text/javascript">
7
      Ext.onReady(function() {
8
         Ext.create('Ext.form.Panel', {
9
            id: 'newForm',
10
            renderTo: 'formId',
11
            border: true,
12
            width: 600,
13
            items: [{
14
               xtype: 'textfield',
15
               fieldLabel: 'Text Field'
16
            },{
17
               xtype: 'displayfield',
18
               fieldLabel: 'Display Field'
19
            },{
20
               xtype: 'textarea',
21
               fieldLabel: 'Text Area'
22
            },{
23
               xtype: 'datefield',
24
               fieldLabel: 'Date picker'
25
            },{
26
               xtype: 'button',
27
               text: 'Button'
28
            },{
29
               xtype: 'fieldcontainer',
30
               fieldLabel: 'Radio field',
31
               defaultType: 'radiofield',
32
               defaults: {
33
                  flex: 1
34
               },
35
               layout: 'hbox',
36
               items: [{
37
                  boxLabel: 'A',
38
                  inputValue: 'a',
39
                  id: 'radio1'
40
               },{
41
                  boxLabel: 'B',
42
                  inputValue: 'b',
43
                  id: 'radio2'
44
               },{
45
                  boxLabel: 'C',
46
                  inputValue: 'c',
47
                  id: 'radio3'
48
               }]