以下代碼正在工作。問題是請求正在發送與& _dc = 1299207914646 & limit = 25附加到發送到服務器的每個請求。沒有什麼我可以做的改變限制= 25。理想情況下,我不想將其他參數發送到服務器。然而,我會盡力將限制設置爲10000或其他。我能夠添加其他參數,但我沒有做任何刪除限制= 25。我也想擺脫& _dc參數,雖然我不知道爲什麼它被添加它不會造成問題。如何阻止ext-js將limit = 25添加到我的JSON查詢中?
任何想法?
請注意:下面的代碼格式的一些奇怪的問題?
感謝
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.panel.*'
]);
Ext.onReady(function(){
Ext.regModel('Image_', { // window.Image is protected in ie6 !!!
fields: ['id', 'key', 'value']
});
var store = new Ext.data.JsonStore({
model: 'Image_',
proxy: {
type: 'ajax',
var store = new Ext.data.JsonStore({
model: 'Image_',
proxy: {
type: 'ajax',
autoload: 'false',
url: '/couchdb/test/_design/blah/_view/by_surname2?startkey=%22r%22&endkey=%22r\u9999%22',
reader: {
type: 'json',
root: 'rows'
}
}
});
store.load();
var listView = new Ext.grid.GridPanel({
width:425,
height:250,
collapsible:true,
title:'Simple ListView <i>(0 items selected)</i>',
renderTo: Ext.getBody(),
store: store,
multiSelect: true,
viewConfig: {
emptyText: 'No images to display'
},
headers: [{
text: 'File',
flex: 50,
dataIndex: 'value'
},{
text: 'Last Modified',
flex: 35,
dataIndex: 'key'
},{
text: 'Size',
dataIndex: 'id',
flex: 15,
cls: 'listview-filesize'
}]
});
// little bit of feedback
listView.on('selectionchange', function(view, nodes){
var l = nodes.length;
var s = l != 1 ? 's' : '';
listView.setTitle('Simple ListView <i>('+l+' item'+s+' selected)</i>');
});
});
只需在您的代理 – stambikk 2015-09-08 09:09:48