jquery的事件绑定格式注意

1$("#p1").mouseover(function(){ $(this).css("color","red");   }).mouseout(function(){ $(this).css("color","orange"); })
两个事件可以同时写在一起。

猜你喜欢

转载自blog.csdn.net/qq_37989076/article/details/87605655