jQuery die() 方法

jQuery 教程 · 2019-03-10 21:29:33

实例

移除所有通过 live() 方法向 <p> 元素添加的事件处理程序:

$("p").die();

定义和用法

die() 方法在 jQuery 版本 1.7 中被废弃,在版本 1.9 中被移除。请使用 off() 方法代替。

die() 方法移除通过 live() 方法向被选元素添加的一个或多个事件处理程序。

语法


$(selector).die(event,function)

参数 描述
event 必需。规定要移除的一个或多个事件处理程序。

由空格分隔多个事件值。必须是有效的事件。
function 可选。规定要移除的特定函数。

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Dreamweaver CS3 Bible

Dreamweaver CS3 Bible

Joseph W. Lowery / Wiley / May 21, 2007 / $49.99

Book Description Learn to create dynamic, data-driven Web sites using the exciting enhancements in the Dreamweaver CS3 version. You get a thorough understanding of the basics and then progress to l......一起来看看 《Dreamweaver CS3 Bible》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具