这是我的商店
给出网址:'/rest/helloworld/submit',
var store = Ext.create('Ext.data.Store', {
autoLoad: false,
fields: ['name', 'date', 'email'],
pageSize: 10, // items per page
proxy: {
method: 'GET',
url: '/rest/helloworld/submit',
disableCaching: false,
type: 'json',
root: 'result',
totalProperty: 'total'
}
});
但正如我在浏览器控制台中看到的那样。
请求 URL 如下:请求 URL:http://localhost:8080/JAXRS-HelloWorld/proxy/json.js?_dc=1428776089867
我还添加了disableCaching:false
但它仍然显示_dc=1428776089867
请帮忙
最佳答案
尝试使用ajax
代理和noCache
属性:
var store = Ext.create('Ext.data.Store', {
autoLoad: false,
fields: ['name', 'date', 'email'],
pageSize: 10, // items per page
proxy: {
method: 'GET',
url: '/rest/helloworld/submit',
noCache: false,
type: 'ajax',
root: 'result',
totalProperty: 'total'
}
});
关于javascript - Extjs : url in store,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29581462/