Ext combo 在表单中提交到action的值问题

来源:互联网 发布:中颖单片机烧录器 编辑:程序博客网 时间:2024/04/30 04:23
***name : 'carttype',hiddenName : 'carttype',//红字部分,为这一行fieldLabel : '证件类型',width : 200,xtype : 'combo',mode : 'local',store : new Ext.data.SimpleStore({fields : ['value', 'text'],data : [[1, '身份证'], [2, '学生证'], [3, '军官证']]}),triggerAction : 'all',valueField : 'value',displayField : 'text'***


红字部分,确保表单中的combo提交的值是'value',不是'text'.