Home > Web Front-end > JS Tutorial > Example of usage of die() method in jQuery_jquery

Example of usage of die() method in jQuery_jquery

WBOY
Release: 2016-05-16 16:19:22
Original
1273 people have browsed it

The example in this article describes the usage of the die() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:

This method removes all one or more event handlers added to the specified element through the live() method.

Grammar structure:

Copy code The code is as follows:
$(selector).die(type, function)

Parameter list:

参数 描述
type 可选。定义附加到元素的一个或多个事件类型。由空格分隔多个事件值。
function 定义当事件发生时运行的函数。

实例代码:

复制代码 代码如下:






脚本之家






 

       
  • 脚本之家

  •  





希望本文所述对大家的jQuery程序设计有所帮助。

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