如题,api上说可以是string,那我直接写服务器地址行不,如
url:'http://172.28.17.21:1521/文件名'

解决方案 »

  1.   

    extjs,这里的URL是请求后台的action,不是服务器地址,ext每个控件显示的值是通过store来实现的
      

  2.   

    能否举个例子,extjs是怎么去后台服务器读数据的?
      

  3.   

    Ext.Ajax.request({
    url : 'emp!empTypeST.action?EmpId='+EmpId+'&type='+type,
    success: function(response,result){
    var data=eval('eval('+response.responseText+')');
    var User = response.responseText;
    //var userStopID = document.getElementById("unitID").innerHTML;
    if(type == 'stop'){
    Ext.Msg.alert('系统提示','用户停用成功!');
    } else {
    Ext.Msg.alert('系统提示','用户启用成功');
    }
    var one = (tablePageIndex-1)*20;
            var two = (tablePageIndex-1)*20+20;
            ds.load({"params":{start:one,limit:20}});
    },
    failure:function(){
    if(type == 'stop'){
    Ext.Msg.alert('系统提示','用户停用成功!');
    } else {
    Ext.Msg.alert('系统提示','用户启用成功');
    }
    }
    });