gpt4 book ai didi

javascript - Extjs : url in store

转载 作者:行者123 更新时间:2023-11-28 07:26:39 29 4
gpt4 key购买 nike

这是我的商店

给出网址:'/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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com