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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -