<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<title>函数传递,函数封装</title>
</head>
<body>
<script>
var testObj={
testFunc:function(func1){
func1();
},
}
var funcBack=function(){
alert("我是函数传递");
}
testObj.testFunc(funcBack); //传递funcBack函数
</script>
</body>
</html>