<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Title</title>
</head>
<body>
<script>function fun3() {function fun4() {alert("我是fun4");}//将fun4函数对象作为返回值返回return fun4;}a=fun3();//输出fun4函数对象console.log(a);//调用fun4console.log(a());//相当于 a=fun3();和a()fun3()();</script>
</body>
</html>