jQuery事件委托

$("body").on("click","span",{"key":"rmk"},function(e){
    console.log(e.data.key);
    alert($(this).text());
})//事件委托

 

posted @ 2017-01-18 15:31  茹孟凯  阅读(129)  评论(0编辑  收藏  举报