您的位置:首页 > 产品设计 > UI/UE

ExtJs技巧 FormPanel.getForm().getValues()的键名问题.

2016-01-20 16:11 417 查看
 


ExtJs技巧 FormPanel.getForm().getValues()的键名问题.

2013-01-12 14:55 3966人阅读 评论(0) 收藏 举报


 分类:

Extjs getValues()(2) 


版权声明:本文为博主原创文章,未经博主允许不得转载。

[javascript] view
plain copy

 print?

var p = new Ext.form.FormPanel({  

                 xtype:'form',  

                 name:"ContentPublishSeting",   

                 items:[  

                    {    

                        xtype:'fieldset',   

                        title: '方式一:在线发布到网站',  

                        //collapsible: true,  

                        checkboxToggle: true,  

                        collapsed: true,    

                        submitValue:true,  

                        name:'sendToWeb',  

                        autoHeight:true,   

                        defaultType: 'textfield',  

                        items :[{   

                                submitValue:true,  

                                name:'Field1',  

                                value:'111',  

                                fieldLabel: 'Field 1'  

                            }, {  

                                submitValue:true,  

                                name:'Field2',  

                                value:'222',  

                                fieldLabel: 'Field 2'  

                            }, {   

                                value:'333',  

                                fieldLabel: 'Field 3'  

                            }  

                        ]  

                    }   

                 })  

 

 p.getForm().getValues()的结果会是 

{

Field1:"111",

Field2:"222",

ext-comp-1031: "333"

}

这里重点区别就是 submitVlaue:true,和 name:'field2' 两个属性
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: