Created
September 3, 2012 05:06
-
-
Save minhd/3606832 to your computer and use it in GitHub Desktop.
jquery ajax overwrite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxSetup({ | |
error: function(err) { | |
//do stuff when things go wrong | |
console.error(err); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment