The functions deprecated by jquery are: [die()] function, [error()] function, [live()] function, [load()] function, [toggle( )] function, [unload()] function, [andSelf()] function, [size()] function, etc.
jquery deprecated function
1. die() function
Function: Remove all event handlers added through the live() method
Deprecated version: Removed in version 1.9.
Alternate function: off()
2, error() function
Function: add/trigger error event
is Deprecated version: Deprecated in version 1.8.
3. Live() function
Function: Add one or more event handlers to the current or future selected elements
Abandoned Version: Removed in version 1.9.
Alternative function: on()
4. load() function
Function: Add an event handler to the load event
Deprecated version: Deprecated in version 1.8.
5. toggle() function
Function: Add two or more functions to switch between click events
Abandoned version: Deprecated in jQuery version 1.8 and removed in version 1.9.
6. unload() function
Function: Add event handler to unload event
Deprecated version: Deprecated in jQuery version 1.8 , removed in version 3.0.
7. andSelf() function
Function: Add the previous set of elements to the current set, the alias of addBack()
is abandoned Version: Deprecated in version 1.8.
8. size() function
Function: Returns the number of DOM elements matched by the jQuery selector
Deprecated version: In version 1.8 was abandoned.
Alternate attributes: .length
9, unique() function
Function: Sort the DOM element array and remove duplicate elements
Deprecated version: Deprecated in jQuery 3.0.
Alternative function: uniqueSort()
Related free learning recommendations: JavaScript (video)
The above is the detailed content of What are the deprecated functions of jquery?. For more information, please follow other related articles on the PHP Chinese website!