<html>
<head>
<title>Example-6.12函数参数和函数返回值</title>
</head>
<body>
<script>
<!--
function a(){
alert(this);
var b=function(){
alert('调用匿名函数');
return a();
}
return b;
}
a(1)(2);
-->
</script>
</body>
</html>
微信扫一扫
<html>
<head>
<title>Example-6.12函数参数和函数返回值</title>
</head>
<body>
<script>
<!--
function a(){
alert(this);
var b=function(){
alert('调用匿名函数');
return a();
}
return b;
}
a(1)(2);
-->
</script>
</body>
</html>
相关推荐