<script src="index.html//cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<button class="hidebtn">点我隐藏</button>
<div>隐藏及设置回调函数</div>
xxxxxxxxxx
$(document).ready(function(){
$(".hidebtn").click(function(){
// popalert 不加括号()
$("div").hide(1000,"linear",popalert)
});
function popalert(){
alert("Hide() 方法已完成!");
}
div{
width: 130px;
height: 50px;
padding: 15px;
margin: 15px;
background-color: green;