<script type="text/vbs">
function test(n)
if n=1 then test=1:exit function
test=test(n-1)*n
end function
alert(test(3))
alert(test(4))
alert(test(5))
</script>
test(3)
↓
test(2)*3
↓
test(1)*2
因为test(1)=1 所以从后面往前面归.test(1)*2*3=6
test(4)
↓
test(3)*4
↓
test(2)*3
↓
test(1)*2
因为test(1)=1 所以从后面往前面归.test(1)*2*3*4=24
test(5)
↓
test(4)*5
↓
test(3)*4
↓
test(2)*3
↓
test(1)*2
因为test(1)=1 所以从后面往前面归.test(1)*2*3*4*5=120