jQuery other utility



$.noop

Is a purely empty parameter, mainly used with the hull when an empty parameter.


$.proxy(function, object)

Sets a specific domain for a certain time. I feel that the jQuery method is a bit like the method with the method of the body(method of implementation) separated from the implementation of a method specified by the proxy body. Through the real application, I feel this method is really very useful, the return value is Boolean. .


$.contains(obj)

To determine whether a dom node contains another dom node, the return value is Boolean.


$.isArray(obj)

To determine whether an object is an array of objects, the return value is Boolean.


$.isFunction(obj)

To determine whether an object is a method, the return value is Boolean.


$.isEmptyObject(obj)

To determine whether an object is empty, the return value is Boolean.


$.isPlainObject(obj)

To determine whether an object is just a pure object, the return value is Boolean.


$.trim(string)

Removes the leading and trailing spaces of the string.


$.param()

The array of object array object array, the personal feeling in the Ajax URL transfer is more useful.


$.error(message)

Accepts a string, and throws an exception that contains the string. As long as the firebug for Firefox developers to use plug-ins,




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook