Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ExtJS I don';无法理解生成的uri';来自这些代理的信息_Extjs_Extjs4 - Fatal编程技术网

ExtJS I don';无法理解生成的uri';来自这些代理的信息

ExtJS I don';无法理解生成的uri';来自这些代理的信息,extjs,extjs4,Extjs,Extjs4,我只是不明白ExtJS是如何构建这些路由的,或者我是如何阻止所有这些路由的 例如,如果我使用代理,如: { type: 'rest', url: '/user', noCache: false, reader: { type: 'json', successProperty: 'success' } } 我希望像restfull API一样,可以请求GET/user或POST/user/123。 相反,我得到的是get/user/root?node=root或g

我只是不明白ExtJS是如何构建这些路由的,或者我是如何阻止所有这些路由的

例如,如果我使用代理,如:

{
    type: 'rest',
    url: '/user',
    noCache: false,
    reader: { type: 'json', successProperty: 'success' }
}
我希望像restfull API一样,可以请求
GET/user
POST/user/123
。 相反,我得到的是
get/user/root?node=root
get user?page=1&start=0&limit=25


有没有办法让ExtJS停止添加所有这些额外的参数?

如果您自己不关心,树存储将定义一个默认的根id


页面和开始参数由网格中的分页工具栏添加。您的REST实现不应该被额外的参数所困扰。如果关闭分页,也可以禁用它们

仅供参考,提到的怪异uri的例子是针对单独的商店;一个扩展一个树洞,另一个扩展一个普通商店。前者随机附加在
/root?node=root
上,后者附加在
?page=1&start=0&limit=25
上。是的,我的实现并没有被它困扰。。。我觉得很难看。谢谢你的帮助,很感激如何关闭请求的根部分(不是参数)?REST api需要GET/controller而不是GET/controller/root?参数。感谢您在store/proxy api中设置,或者使用REST代理,在这种情况下,服务器REST api应该需要资源标识符。如果您没有在后端使用REST,也不要在客户端使用REST代理。