本帖最后由 liuliu26 于 2013-01-10 17:28:39 编辑

解决方案 »

  1.   

    $('#cc').combobox({                 
    required : true,                 
    url : 'aa.json',                 
    textField : 'text',                 
    valueField : 'id',                 
    mode : 'remote',                 
    method:'post',                 
    panelHeight : 'auto',                 
    width:150,                 
    delay : 500,                 
    value : '',
    onChange:function(newValue,oldValue){
    var options=$(this).combobox("options");
    if(newValue.length>2)
    options.url='aa.json';
    else
    options.url='';
    }} 
      

  2.   

    楼上方法不错:$('#cc').combobox({                 
    required : true,                 
    url : 'aa.json',                 
    textField : 'text',                 
    valueField : 'id',                 
    mode : 'remote',                 
    method:'post',                 
    panelHeight : 'auto',                 
    width:150,                 
    delay : 500,                 
    value : '',
    onChange:function(newValue,oldValue){
    var options=$(this).combobox("options");
    if(newValue.length>2)
    options.url='aa.json';
    else
    options.url='';
    }})