请问这段代码有什么问题,这样连起来写有问题?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery动画特效</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<style>
div{
position:relative;
margin:5px;
width:100px;
height:100px;
border:2px solid #999;
background:#f60;
}
</style>
</head>
<body>
<button class="i">按钮1--左移动</button>
<button class="j">按钮2--右移动</button>
<div>hello world</div>
<script type="text/javascript">
$(function)(){
$(".i").bind("click",function(){
$("div").animate({
left:"+=50px" },1000,function(){
$(".j").bind("click",function(){
$("div").animate({
right:"-=50" },1000,function()
{$("div").html(执行结束!)})
})})})}
</script>
</body>
</html>