jquery实现为元素添加点击事件

(为p增长一个点击事件)当点击 p 元素时,增长该元素的文本大小:javascript

$("p").one("click",function(){
  $(this).animate({fontSize:"+=6px"});
});
$("#id").removeattr("onclick");

$("#id").attr("name","name");

$("#id").one("click",function(){alert(123);})
//添加点击事件
$("#i" + pid).one("click", function () {getPerson()});
//运行下面这行js语句getFolderList()函数就执行了
$("#i" + pid).one("click", getPerson());
相关文章
相关标签/搜索