通过Ajax.request调用
@see Ext.data.Connection#onComplete
#success[response, options]:返回值:response{status、statusText、responseText/responseXML/responseBytes}
#failure[response, options]:返回值:response{status、statusText}
#callback[options, success, response]
触发流程:#success或#failure-->#callback
通过model/store调用
@see Ext.data.operation.Operation#process
sucess时,records与operation.getRecords()同
!sucess时,错误信息:operation.getResponse{status、statusText}、operation.getError()
#callback [records,operation,sucess]
@see Ext.data.proxy.Server#processResponse
错误信息:response{status、statusText}
#exception(事件)[server, response, operation]
触发流程:
success时-->#callback
!success时-->#callback-->exception事件
!success(网络请求无应答)时-->exception事件
@see Ext.data.Connection#onComplete
#success[response, options]:返回值:response{status、statusText、responseText/responseXML/responseBytes}
#failure[response, options]:返回值:response{status、statusText}
#callback[options, success, response]
触发流程:#success或#failure-->#callback
通过model/store调用
@see Ext.data.operation.Operation#process
sucess时,records与operation.getRecords()同
!sucess时,错误信息:operation.getResponse{status、statusText}、operation.getError()
#callback [records,operation,sucess]
@see Ext.data.proxy.Server#processResponse
错误信息:response{status、statusText}
#exception(事件)[server, response, operation]
触发流程:
success时-->#callback
!success时-->#callback-->exception事件
!success(网络请求无应答)时-->exception事件