Javascript Sencha存储加载()无法工作
我尝试从url加载数据。 我有2个网页。此页面返回json数据。这些页面都是相同的数据 这是我的第一页连接。它的工作请求数据没有问题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(); 这是
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控制台,没有任何错误
我的网页源代码在这里
我注意到您的端口不同,您可能会遇到跨源问题。