Appendix I (^) ❘ 549
$.now() Returns a number representing the cur-
rent time. The number returned is a
shorthand for:
(new Date).getTime()
Number
$.parseHTML(html) Parses an HTML string into an array of
DOM nodes.
Array
$.parseJSON(json) Parses a JSON string and returns the
resulting JavaScript object.
Object
$.parseXML(xml) Parses an XML string into an XML
document.
XMLDocument
$.proxy(
function(),
context
[, arguments]
)
Takes a function and returns a new
one with the provided context. this
becomes what you provide to context.
If the arguments argument is specifi ed,
those
arguments will be sent on to the
function.
Function
$.proxy(
context,
functionName
[, arguments]
)
Takes a function and returns a new one
with
the provided context. this becomes
what you provide to context.
functionName is a string referencing the
function you want to change the context
of.
If the arguments argument is specifi ed,
those arguments will be sent on to the
function.
Function
$.queue(element
[, queue])
Shows the queue of functions to be
executed on the element.
Array
$.support() Returns an object containing properties
that describe the browser’s features or
bugs for jQuery’s internal use.
Object
$.trim(string) Removes white space (newline charac-
ters, spaces, tabs, and carriage returns)
from the beginning and end of a string.
String
$.type(object) Determines the internal JavaScript class
of an object.
String
$.unique(array) Removes duplicate values from the
specifi ed array.
Array
http://www.it-ebooks.info
elliott
(Elliott)
#1