我像这样创建一个过滤选择:
var lensMapServiceFS = new dijit.form.FilteringSelect({
displayedValue: this.layerNames[0],
value: this.layerNames[0],
name: "lensMapServiceFS",
required: false,
store: lensMapServiceOptions,
searchAttr: "name",
style: {'width': '100px', 'fontSize': '8pt'}
}, this.id + ".lensMapService");
但是当我的页面加载时,过滤选择中没有显示任何内容。当您单击下拉菜单时,我的商店中的所有值都会显示,但过滤选择中实际上没有显示任何内容。如果我从 firebug 或 chorme 控制台调用 getValue() 或 getDisplayedValue() ,则会返回正确的值。有任何想法吗?