animate(参数列表,执行时间,回调函数)
<!doctype html>
<html><head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="jquery.js"></script>
<style type="text/css">
#div1{
width:200px;
height:200px;
background-color:#CF9;
}
</style>
</head>
<body>
<div id="div1"></div>
<button id="clc">点击我</button>
</body>
<script>
$(function(){
$("#clc").bind("click",function(){
$("#div1").animate(
{width:"300px",
height:"300px"},3000,function(){
$("#clc").html("执行完毕");
});
});
});
</script>
</html>