jQuery ajax() URL is required? -
the ajax function's header is: jquery.ajax( url [, settings ] )
with documentation saying url required, why in examples 'settings' supplied?
$.ajax({ type: "get", url: "test.js", datatype: "script" });
right below that, you'll see other syntax $.ajax
, settings object passed, including url.
Comments
Post a Comment