jQuery 支持方法的连写
$("p").click(function(){alert($(this).html())}).mouseover(function(){alert("mouse over event")}).each(function(i){this.style.color=["#f00","#0f0","#00f"][i]});