Skip to content

Instantly share code, notes, and snippets.

@LarryStanley
Created March 15, 2017 10:09
Show Gist options
  • Save LarryStanley/6b99057d24e142ce87906416840ed0c9 to your computer and use it in GitHub Desktop.
Save LarryStanley/6b99057d24e142ce87906416840ed0c9 to your computer and use it in GitHub Desktop.
ajax 基本語法
$.ajax({
url: '',
type: 'GET',
data: {
},
error: function(xhr) {
alert('Ajax request 發生錯誤');
},
success: function(response) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment