的文档JQAjaxSetup >> onError的:说:访问JavaScript函数参数
onError: anObject "A function to be called if the request fails. The function is passed three arguments: The XMLHttpRequest object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are 'timeout', 'error', 'notmodified' and 'parsererror'."
我想显示使用类似
anAjax onError: ((html jQuery id: someId) before: (MyInstanceOfWAPainter error: 'An error message'));
我该怎么做,该错误消息?可能在客户端完成这一切。
我会期待一个块后onError :.由于我不了解海边,所以在谈到Javascript时可能会出错。 'anAjax的onError:((HTML jQuery的ID:someId)之前:(MyInstanceOfWAPainter错误: '错误消息'))]' – mathk 2011-04-19 06:12:11