jQuery 第19章 支持方法的连写 jQuery 第19章 支持方法的连写

2022-08-17

jQuery 支持方法的连写

$("p").click(function(){alert($(this).html())})
.mouseover(function(){alert("mouse over event")})
.each(function(i){this.style.color=["#f00","#0f0","#00f"][i]});
阅读 1489