现代语言的函数中都可以带有默认参数,在vbscr ipt系统内建的函数可以带有可选值(如常用的 split()等等),然而我们自己定义的函数中无法具有此功能.
下面提供一个方法实现可选参数的功能.
functin foo(dtype, dsize, value)
dim a, b
if TypeName(dtype) "Error" Then
a = dtype
else
a = "default value"
end if
If T
ASP错误总结 ——————————————————————————– Microsoft VBscr ipt语法错误(0x800A03E9)–>内存不足 Microsoft VBscr ipt语法错误(0x800A03EA)–>语法错误 Microsoft VBscr ipt语法错误(0x800A03EB)–>缺少 ‘:’ Microsoft VBscr ipt语法错误(0x800A03ED)–>缺少 ‘(‘ Microsoft VBscr ipt语法错误(0x800