fieldLabel : "买卖方向",
xtype : 'combo',
id : 'submit_fal',
//name : 'submit_fal',
name : 'bsFlag',
store : store_fal,
valueField : 'value',
displayField : 'name',
mode : 'local',
emptyText : '买卖方向',
triggerAction : 'all',
selectOnFocus : true,
editable : false,
allowBlank : false,
blankText : '买卖方向不能为空',
anchor : '90%'
后台:request.getParameter("'bsFlag'");为什么取到的值是displayField 的值而不是valueField 的值?
1、response.setCharacterEncoding("UTF-8");
2、new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");
3、Tomcat ,server.xml 文件Connector节点添加 URIEncoding="utf-8" 属性
添加hiddenName属性
hiddenName:'bsFlag'