我需要使用生成的 url 设置 ajax 请求。
Ext.define('Cc.store.Absences', {
extend: 'Ext.data.Store',
model: 'Cc.model.Absence',
autoLoad: false,
proxy: {
type: 'ajax',
url: 'person/user_id/absences', //I need a param to define user id
reader: {
type: 'json'
}
}
});
我想我必须使用 Ext.data.Operation 但我不知道该怎么做。