$("#music_up").bind("click",showData()); $("#music_up").bind("click",showRe());
$("#music_up").bind("click",function(){ showData(); showRe(); });
<script type="text/javascript"> $(document).ready(function(){ $("button").bind({ click:function(){$("p").slideToggle();}, mouseover:function(){$("body").css("background-color","red");}, mouseout:function(){$("body").css("background-color","#FFFFFF");} }); }); </script>
function showData(){ alert(‘showData‘); } function showRe(){ alert(‘showRe‘); }
原文:http://www.cnblogs.com/wesky/p/3886572.html