VBS怎么使用有返回值的函数比如:
dim x
x= factorial(3)
function factorial(n)
if n=0 then
return 1
else
value=factorial(n-1)
return n*value
end if
end function
msgbox x
谢谢
VBS的函数返回,不是使用RETURN,是这种模式
factorial = n*value
哦 谢谢 忘了 的确是在地方看到过 还是麻烦了
你是不断递归导致堆栈溢出了,仔细检查你的代码