<!DOCTYPE html>
<html>
<head>
<meta charset="{CHARSET}">
<title></title>
</head>
<body>
<script>
function f(){
var num=1;
return function(){
num++;
alert(num);
};
};
var result1=f();
result1();
result1();
var result2=f();
result2();
result2();
</script>
</body>
</html>
添加回答
举报
0/150
提交
取消