Last active
December 15, 2015 23:49
-
-
Save hrkd/5343454 to your computer and use it in GitHub Desktop.
ほんとよく忘れる
This file contains hidden or 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
//require jQuery | |
$.ajax({ | |
url: "foo", | |
dataType: "bar", | |
data:{ | |
"foo":"bar" | |
}, | |
success: function(data, textStatus, xhr){ | |
result = data; | |
}, | |
error: function( data, textStatus, xhr ) { | |
alert(textStatus); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment