ExtJS access to information in the open Form.fileUpload, returned

When the Form, after opening fileUpload, can not get action.result way by default, open fileUpload or not, returned content is not the same action.result

When unopened fileUpload returned action.result abnormal data object containing returns success, msg information

But after opening fileUpload, action.result returns a Boolean data, the corresponding data is included in the action.response.responseText and use <pre> ,,, </ pre> carried the parcel

So, when the open fileUpload, to get the results returned data, you need to take the extra step operation

 

var result = Ext.util.JSON.decode(action.response.responseText.substring(5,action.response.responseText.length - 6))

 

Guess you like

Origin www.cnblogs.com/dreamcat/p/11417496.html