参考 http://mlxnle.iteye.com/blog/1670679

<!doctype html>
<html lang="es">
<head>
	<meta charset="UTF-8">
	<title>HTML5</title>
	<link rel="stylesheet" href="#" /><!-- css样式  -->
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
	/** 
	 * 回调函数测试方法 
	 *  
	 * @param callback 
	 *            被回调的方法 
	 */  
	function testCallback(callback) {  
		alert('come in!');  
		callback();  
	}  
	  
	/** 
	 * 开始测试方法
	 */  
	testCallback(function(){  
		alert('a'); 
		$("#div1").fadeIn();
		$("#div2").fadeIn("slow");
		$("#div3").fadeIn(3000);
	});   
});   
</script>
<body>
	<div class="test"></div>
	<div ></div><br>
	<div ></div><br>
	<div ></div>
</body>
</html>

  

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-07-11
  • 2022-02-12
  • 2021-10-19
猜你喜欢
  • 2021-06-17
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-02-01
相关资源
相似解决方案