分析下面javascript代码:<script>functi...
发布于 2022-03-03 11:41:56
分析下面javascript代码:
<script>
function out(x){
var temp = 2
return function (y){
document.write( x + y + (++temp))
}
}
var inside = out(3)
inside(5)
</script>
输出结果为:
<script>
function out(x){
var temp = 2
return function (y){
document.write( x + y + (++temp))
}
}
var inside = out(3)
inside(5)
</script>
输出结果为:
登录后免费查看答案
关注者
0
被浏览
10