解决方案 »

  1.   


    Ext.define('ATM.store.UserInfo',{
        extend:'Ext.data.Store',
        model:'ATM.model.UserInfo',
        autoLoad:true,
        pageSize : 10,
        proxy:{
            type:'ajax',
            url:'http://xx.xx.xx.xx:8080/xx/xx/',//url应该是ip地址加端口(如果不是默认的)再加层级目录
            api:{
                read:'finduser.action',
                update :'update-user-json.do',
                destory:'deleteuser.action',
                create:'finduser.action'
            },
            reader:{
                type:'json',
                root:'root',
                successProperty:'success',
                totalProperty:'totalProperty'
            }
        }
    });
      

  2.   

    可问题不是出现在请求action的路径上面,而是不应该走default.action啊,我删除了一条记录后(store.remove(record)),做sync动作时它为什么不走api里面配置的destory:'deleteuser.action'呢?
      

  3.   

    我把url改成这样:'http://ly-pc:8888/atm/ext/'
    它请求的地址成了下面这样:http://ly-pc:8888/atm/ext/?_dc=1397003873519
    明显的还是请求的url,而没有走destory啊
      

  4.   

    问题解决了,找到了原因,因为我的destroy写错了,写成destory了……结贴散分了