Home > Web Front-end > JS Tutorial > body text

What are the deprecated functions of jquery?

青灯夜游
Release: 2020-11-17 17:04:48
Original
2313 people have browsed it

The functions deprecated by jquery are: [die()] function, [error()] function, [live()] function, [load()] function, [toggle( )] function, [unload()] function, [andSelf()] function, [size()] function, etc.

What are the deprecated functions of jquery?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template