ASP过程调用问题

来源:百度知道 编辑:UC知道 时间:2024/05/01 06:33:31
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/SMJDSN.asp" -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>

<form name="form1" method="post" action="" >
<input type="text" name="textfield" onKeyUp="Call abc(this.value)">
</form>
<% Function abc(x)%>

<%Dim R1
Dim R1_numRows

Set R1 = Server.CreateObject("ADODB.Recordset")
R1.ActiveConnection = MM_SMJDSN_STRING

都一样的,都可以用call语句调用。即下面的脚本执行结果就是4:
<script language="vbscript">
dim a
sub c1()
a=1
end sub
sub c2()
call c1
a=a+3
document.write(a)
end sub
call c2()
</script>

这种规则是VBScript的规则,并没有服务器端和客户端之分,都一样使用的。

看不出来