首页  >  事件对象  > eve.data 源码下载

返回值:Anythingevent.data

V1.1概述

当前执行的处理器被绑定的时候,包含可选的数据传递给jQuery.fn.bind。

示例

描述:

The description of the example.

jQuery 代码:
$("a").each(function(i) {
    $(this).bind('click', {index:i}, function(e){
       alert('my index is ' + e.data.index);
    });
  });   
阿里云专属限量优惠券,限时领取~