1
常見形式Ext.direct提交N載荷,載荷工作正常,但提交是返回錯誤,怎麼在後數據不確定的ExtJS4直接提交表單
var _form = Ext.create('Ext.form.Panel', {
api: {
submit: submit, //actions I took from code that going above, and never mind what I ll write here. Its not a problem
load: load
},
baseParams: {
st_id: st_id,
id: id
},
paramsAsHash: true,
defaultType: 'textfield',
buttons: [{
text: 'Cancel',
handler: function() {
this.up('form').getForm().reset();
}
}, {
text: 'Save',
handler: function() {
var values = this.up('form').getForm().getValues();
this.up('form').getForm().submit({
success: function() {
grid.getStore().load();
}
});
this.up('form').getForm().reset();
}
}]
});
中頭寫道,內容類型是「應用/ JSON;」但在其他情況下,它的「應用程序/ x-www-form-urlencoded」最後纔有意義,對吧?它工作,但以其他形式。 所有這一切都在Kohana之下,所以當我清楚地看到控制器中發生了什麼時,在Extdirect Router中,我看到這個表單中沒有關於提交方法的信息。