ext下拉列表处不来,请各位帮看看_html/css
来源:懂视网
责编:小采
时间:2020-11-27 15:43:44
ext下拉列表处不来,请各位帮看看_html/css
ext下拉列表处不来,请各位帮看看_html/css_WEB-ITnose:Ext Html Insert title here Ext.onReady(function(){ var data = [ ['value1','text1'], ['value2','text2'], ['value3','text3'] ]; var store = new Ext.data.SimpleStore({ fields:['value','text'], data:data });var combo = new Ext.form.ComboBox({
导读ext下拉列表处不来,请各位帮看看_html/css_WEB-ITnose:Ext Html Insert title here Ext.onReady(function(){ var data = [ ['value1','text1'], ['value2','text2'], ['value3','text3'] ]; var store = new Ext.data.SimpleStore({ fields:['value','text'], data:data });var combo = new Ext.form.ComboBox({

Ext Html
Insert title here
回复讨论(解决方案)
SimpleStore 改成ArrayStore
applyTo:'combo',
要用renderTo:‘combo’
var store = new Ext.data.ArrayStore({
fields:['value','text'],
data:data
});
还没有效果
applyTo:'combo',
要用renderTo:‘combo’
就不是下拉列表
自己找到原因
ext下拉列表处不来,请各位帮看看_html/css
ext下拉列表处不来,请各位帮看看_html/css_WEB-ITnose:Ext Html Insert title here Ext.onReady(function(){ var data = [ ['value1','text1'], ['value2','text2'], ['value3','text3'] ]; var store = new Ext.data.SimpleStore({ fields:['value','text'], data:data });var combo = new Ext.form.ComboBox({