javascript - What does $() in jquery mean -
i know $() selector , can't figure out selects, since there's nothing inside parenthesis. practice or bad?
example see used...making call data service.
$().dataservice({ url: geturl('application', data), params: params, success: getresponse, error: errorresponse })
from jquery 1.4 release notes:
in jquery 1.3, jquery() returned jquery set containing document. in jquery 1.4, returns empty jquery set. can useful creating empty set , adding elements dynamically.
so answer question, selects nothing, returning empty set. acceptable use, , not considered bad practice.
Comments
Post a Comment