关于ASP的问题?

来源:百度知道 编辑:UC知道 时间:2024/06/02 11:54:44
<%
if request.form("submit")="确定"
email=request.form("Email")
names=split(email,"@")
Ubound(names)<>1 then
response.writ("<script>alert</script>")
resposne.end
end if
for each name in names
if len(name)<1 then
response.write("<script>alert''</script>")
response.end
end if
next
%>
问上面的Ubound()是什么意思??
for each name in names是什么意思??

The UBound function returns the largest subscript for the indicated dimension of an array.
UBound 函数可返回指定数组维数的最大可用下标

Tip: Use the UBound function with the LBound function to determine the size of an array.
提示:UBound 函数与 LBound 函数一起使用,用于确定数组的大小

语法
UBound(arrayname[,dimension])

参数 描述
arrayname Required. The name of the array variable
必选项。数组变量名,遵循标准变量命名约定
dimension Optional. Which dimension's upper bound to return. 1 = first dimension, 2 = second dimension, and so on. Default is 1
可选项。指定返回哪一维上界的整数。1 表示第一维,2 表示第二维,以此类推。如果省略 dimension 参数,则默认值为 1。

for each name in names是name 是否包含在names里,相当于匹配name字符