登幽州台歌(陈子昂)

前不见古人,后不见来者。

念天地之悠悠,独怆然而涕下!

">
立诚勿怠,格物致知
It's all about connecting the dots

Miscellaneous properties and functions in jQuery

These utility methods are often very useful when writing scripts using jQuery.

Properties of the jQuery object

Properties of the jQuery object
Property Description
$.support Returns an object containing properties indicating whether the browser supports various feactures and standards.

Arrays and objects

Arrays and objects
Function Description
$.each(collection, callback) Iterates over collection, executing callback for each item.
$.extend(target, addition, …) Modifies the object target by adding properties from the other supplied objects.
$.grep(array, callback, [invert]) Filters array by using calback as a test.
$.makeArray(object) Converts object into an array.
$.map(array, callback) Constructs a new array consisting of the result of callback being called on each item.
$.inArray(value, array) Determines whether value is in array.
$.merge(array1, array2) Combines the contents of array1 and array2.
$.unique(array) Removes any duplicate DOM elements from array.

Object introspection

Object introspection
Function Description
$.isArray(object) Determines whether object is a true JavaScript array.
$.isEmptyObject(object) Determines whether object is empty.
$.isFunction(obejct) Determines whether object is a function.
$.isPlainObject(object) Determines whether object was created as an object literal or with new object.
$.isNumeric(object) Determines whether object is a numeric scalar value.
$.isWindow(object) Determines whether object is an XML node.
$.isXMLDoc(object) Determines whether object is an XML node.
$.type(object) Gets the JavaScript class of object.

Other

Other
Function Description
$.trim(string) Removes whitespace from the ends of string.
$.noConflict([removeAll]) Reverts $ to its pre-jQuery definition.
$.noop() A function that does nothing.
$.now() The current time in milliseconds since the epoch.
$.holdReady(hold) Stops the ready event from being triggered, or releases this hold.
赞(0) 打赏
文章名称:《Miscellaneous properties and functions in jQuery》
文章链接:https://www.orzzone.com/miscellaneous-properties-and-functions-in-jquery.html
商业联系:yakima.public@gmail.com

本站大部分文章为原创或编译而来,对于本站版权文章,未经许可不得用于商业目的,非商业性转载请以链接形式标注原文出处。
本站内容仅供个人学习交流,不做为任何投资、建议的参考依据,因此产生的问题需自行承担。

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力提供更多优质内容!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册