有个问题不懂啊?
<script type="text/javascript">
$(function () {
$("span").animate({
left: "+=100px"
}, 3000, function () {
$("span").animate({
height: '+=30px',
width: '+=30px'
}, 3000, function () {
$("#tip").html("执行完成!");
});
});
});
</script>
//这样子写是不是把后面一个函数写成上一个函数的回调函数了????
//为啥我下面用方法链调用的写法写不行捏????
<script type="text/javascript">
$(function () {
$("span").animate({
left: "+=100px"
}, 3000);
.$("span").animate({
height: '+=30px',
width: '+=30px'
}, 3000);
.$("#tip").html("执行完成!");
});
</script>