本文共 279 字,大约阅读时间需要 1 分钟。
.bind:为jQuery对象绑定事件
$(元素).bind(“click”,function(){…}); 为元素绑定点击事件 $(元素).click(function(){…}); 与上等价 $(元素).on(“click”,function(){…}); 为元素绑定点击事件
$("div").hover(function(){ },function(){ },...);
通过在响应函数结尾返回false,可以阻止冒泡:return false;
转载地址:http://qnxwz.baihongyu.com/