the ajax function's header is: jQuery.ajax( url [, settings ] )
With the documentation saying that URL is required, why in the examples is only 'settings' supplied?
$.ajax({
type: "GET",
url: "test.js",
dataType: "script"
});
Right below that, you'll see the other syntax for $.ajax
, where just a settings object is passed, including the URL.
They provide two method signatures
jQuery.ajax( url [, settings ] )
jQuery.ajax( [settings ] )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With