$. myfunc refers to a "static" or global function in the jquery namespace. It does not depend on jquery initialization with a selector such as $ ('# id'). Myfunc (...).
$. ajax is an example.
$. fn.myfunc, on the other hand, adds myfunc to the prototype of the jquery object, so when the jquery objetc is created using the $ ('# id') selector, the new object has the myfunc method, which is invokable in the context of the jquery object just created.
source share