laitimes

29. What is the difference between jQuery.extend() and jQuery.fn.extend()? (Must Meet)

author:Chi Zi Mu

$.fn.extend() and $.extend() are two ways jQuery provides arches for extensions

jQuery.extend() is generally used to extend tool functions (also known as class-based extensions)

jQuery.fn.extend() is generally used to extend custom plugins, i.e. plugins used on jQuery instances (object-based extensions)