zoukankan      html  css  js  c++  java
  • 遍历form表单

                                   //表单
                                   var form = new Ext.form.FormPanel({                             //创建表单面板
                                       labelAlign: 'center',                                       //水平对齐方式
                                       layout: 'form',                                             //布局模式
                                       id: 'form_xg',                                              //设置ID
                                       labelWidth: 100,                                            //宽度
                                       frame: true,                                                //是否显示frame
                                       defaultType: 'textfield',                                   //默认文本类型
                                       defaults: { allowBlank: false },                            //默认是否允许为空
                                       autoHeight: true,                                           //自适应高度
                                       autoWidth: true,                                            //自适应宽度
                                       bodyStyle: 'padding:0 0 10px 30px;',                        //设置窗体样式
                                       items: items
                                   });
    
    
                                  form.items.each(function (item, index, length) {

                                        alert(item.initialConfig.id);
                                        alert(item.getName());
                                        alert(item.initialConfig.name);
                                        alert(item.initialConfig.emptyText);
                                        alert(item.getValue());
                                        alert(item.getXType());

                                   });
  • 相关阅读:
    Tree UVA
    stringstream的使用
    Trees on the level UVA
    strchr和strstr函数
    sscanf的用法
    Dropping Balls UVA
    Boxes in a Line UVA
    Broken Keyboard (a.k.a. Beiju Text) UVA
    Matrix Chain Multiplication (堆栈)
    出栈次序
  • 原文地址:https://www.cnblogs.com/siyunianhua/p/3645334.html
Copyright © 2011-2022 走看看