首页 > 代码库 > js blind使用

js blind使用

$("#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);        }