Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/417.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
Javascript Sencha存储加载()无法工作_Javascript_Extjs - Fatal编程技术网

Javascript Sencha存储加载()无法工作

Javascript Sencha存储加载()无法工作,javascript,extjs,Javascript,Extjs,我尝试从url加载数据。 我有2个网页。此页面返回json数据。这些页面都是相同的数据 这是我的第一页连接。它的工作请求数据没有问题 var store =Ext.getStore('strUrunler'); store.setProxy({url:'http://localhost:1002/ZULU/NewMobile/data.aspx?act=getAllProducts'}); store.getProxy(); store.load(); store.sync(); 这是

我尝试从url加载数据。 我有2个网页。此页面返回json数据。这些页面都是相同的数据

这是我的第一页连接。它的工作请求数据没有问题

    var store =Ext.getStore('strUrunler');
store.setProxy({url:'http://localhost:1002/ZULU/NewMobile/data.aspx?act=getAllProducts'});
store.getProxy();
store.load();
store.sync();
这是我的第二页

 var store =Ext.getStore('strUrunler');
store.setProxy({url:'http://localhost:63195/default.aspx'});
store.getProxy();
store.load();
store.sync();
所以我只是更改了代理url。但它不起作用。2.url从页面请求数据,但未显示任何内容。我正在查看chorme控制台,没有任何错误

我的网页源代码在这里


我注意到您的端口不同,您可能会遇到跨源问题。