【发布时间】:2015-03-05 06:41:31
【问题描述】:
我正在使用 extjs 3.4
这是我的代码:
Ext.onReady(function() {
var myPanel = new Ext.Panel({
renderTo : document.body,
height : 500,
width : 1000,
title : 'Simple Panel',
html : 'This is my content',
frame : true,
items: {
layout: 'form',
width: 200,
labelAlign: 'top',
style: 'margin-top: 5px;',
items: {
xtype: 'combo',
id: 'x',
width: 115,
listWidth: 115,
fieldLabel: '<b>My combo</b>',
labelStyle: 'font-size: 11px;',
style: 'margin-left:20px',
labelSeparator: '',
forceSelection: true,
value: 'A',
store: ['A', 'B', 'c'],
autoSelect: true
}
}
});
});
我想将'A'设为默认值...现在它在组合框中仅显示'A'...并且缺少'B'和'c'(意味着列表中都缺少)
请帮忙
【问题讨论】:
标签: javascript extjs extjs3