Can someone explain me this please:
url: is the API url.
datatype: json jsonp http the type of data I’m requesting?
type: post or get I’m not sure about this?
headers: don’t have the close idea ???
data: the data I’m sending, why I’m sending data??
success: the function after everything is ok?
function searchf(){
$.ajax({
url: api,
dataType: 'jsonp',
type: 'POST',
headers: {
}
})
}
Thank you!