日期:2014-05-16 浏览次数:20367 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> <script src="http://code.jquery.com/jquery-latest.js"></script> <style> </style> </head> <body> <a href="#" id="a">123</a> <script> var fn = function(){ alert(123) } $('#a').click(function(){ fn(); $(this).unbind('click'); setTimeout(function(){ $(this).bind('click', fn); }, 5000) }) </script> </body> </html>
------解决方案--------------------
<input id="btn" type="button" value="test-btn"> <a id="myauthor" href="#">test</a> <script type="text/javascript"> $('#btn').click(function(){ $('#myauthor').hide().delay(800).fadeIn(); }) </script>