In looking through the source code and through examples online, I keep coming across something like:
$.getJSON("test.php", parameters)
.done(function (data) {
// code for success
})
While I can follow what this is doing, I don't understand the syntax. The .done
part looks like an object method, but why is the .
not attached to an object or variable? What is the context in which it functions?
Pointing me to a better resource than I have found would be a great answer as well.