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');
}
上一篇:android之程序自动更新的实现


下一篇:POJ - 1426 Find The Multiple(搜索+数论)