Skip to content

Instantly share code, notes, and snippets.

@minhd
Created September 3, 2012 05:06
Show Gist options
  • Save minhd/3606832 to your computer and use it in GitHub Desktop.
Save minhd/3606832 to your computer and use it in GitHub Desktop.
jquery ajax overwrite
$.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