When calling a VBScript or a JavaScript procedure from an ASP file written in VBScript, you can use the "call" keyword followed by the procedure name. If a procedure requires parameters, the parameter list must be enclosed in parentheses when using the "call" keyword. If you omit the "call" keyword, the parameter list must not be enclosed in parentheses. If the procedure has no parameters, the parentheses are optional.
当用VBscript来调用VBscript或JS子程序时,你可以使用关键字"call"后面跟着子程序的名称.如果子程序需要参数,参数列必须被括号括起来.如果你忽略了"call"关键字,参数列外必须不带有括号.如果子程序没有参数要求,那括弧可带可不带.
When calling a JavaScript or a VBScript procedure from an ASP file written in JavaScript, always use parentheses after the procedure name. 当用JS调用ASP文件中的JS或VBS子程序时,在子程序名后一定得使用括弧.
posted on 2006-10-26 14:58
汪杰 阅读(339)
评论(0) 编辑 收藏 引用 所属分类:
javascript