追加 "yourFunctionを()":
function success() {
yourFunction();
// If a local callback was specified, fire it and pass it the data
if (s.success) {
s.success.call(callbackContext, data, status, xhr);
}
// Fire the global callback
if (s.global) {
trigger("ajaxSuccess", [xhr, s]);
}
}
編集:jqueryの-1.5.1のソースで
.js "yourFunction()"を追加します。
if (isSuccess) {
yourFunction();
deferred.resolveWith(callbackContext, [ success, statusText, jqXHR ]);
} else {
deferred.rejectWith(callbackContext, [ jqXHR, statusText, error ]);
}
thanks sandex!これは私が必要なものです!よくやった! – GianFS