var resource_store = Ext.create('Ext.data.Store', {
pageSize: 10,
autoLoad: true,
fields: ['id','r_number','c_number','resource_name','resource_desc','resource_url','resource_file'],
proxy: {
type: 'ajax',
url: BASE_URL+'courses/resources/displayResources/'+course_id,
reader: {
type: 'json',
root: 'results'
}
},
storeId: 'id'
});
나는 이런 식으로 Extjs4 데이터 저장소를 사용하고 있습니다. 내가 아약스를 참조 은 임의의 숫자는 내가 actionMethod:{ read: 'POST' }
를 사용하더라도 URL을extjs 데이터 스토어에 임의의 숫자가 추가되었습니다. ajax 호출
http://localhost/Edu_web/index.php/courses/resources/displayResources/PTGRE14?_dc=1328442262503&page=1&start=0&limit=10
에 추가됩니다 호출합니다.
? _dc = 1328442262503이 (가) 계속 URL에 나타납니다.
url에서 이러한 매개 변수를 제거하는 방법. POST를 통해 매개 변수를 보내려면
이 매개 변수는 문제를 일으키지 않습니다. – Hadas