<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<[email=%@LANGUAGE=]%@LANGUAGE="VBSCRIPT[/email]" CODEPAGE="65001" %>
<%
dim a
a = 10
function change_val( n )
n = n + 1
response.Write("在函数内 n = " & n & "<br />")
end function
response.Write("未调用 change_val() 函数前, a 的值为:" & a & "<br />")
call change_val(a)
response.Write("调用 change_val() 函数后, a 的值为:" & a)
%>
</body>
</html>
未调用 change_val() 函数前, a 的值为:10
在函数内 n = 11
调用 change_val() 函数后, a 的值为:10
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |