Skip to content

Instantly share code, notes, and snippets.

@vickonrails
Created November 3, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vickonrails/e51d44ef2756b6aeb106ff894d959af1 to your computer and use it in GitHub Desktop.
Save vickonrails/e51d44ef2756b6aeb106ff894d959af1 to your computer and use it in GitHub Desktop.
Parameter Type Default Description
url string - An address to fetch the data from.
data string - Specifies data to send to the server alongside the request
function(data,status,xhr) function - A function to handle the response when it arrives.
dataType string Automatic type casting Specifies the type of data to expect from the server. e.g json, text, xml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment