$("#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‘); }
js blind使用
时间: 2024-11-02 23:41:30