继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

(lj-test)jquery动作延迟执行

ajax入门学习视频
关注TA
已关注
手记 266
粉丝 80
获赞 597

jQuery 动作延迟范例代码


<!DOCTYPE html><html><head>  <style>div { position: absolute; width: 60px; height: 60px; float: left; }.first { background-color: #3f3; left: 0;}.second { background-color: #33f; left: 80px;}</style>  <script src="http://code.jquery.com/jquery-1.7rc2.js"></script></head><body>    <p><button>Run</button></p><div class="first"></div><div class="second"></div>      <script>    $("button").click(function() {      $("div.first").slideUp(300).delay(800).fadeIn(400);      $("div.second").slideUp(300).fadeIn(400);    });</script></body></html>




打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP