是判断 Form 函数接收到的参数数量。像是C里的args.length

解决方案 »

  1.   

    Microsoft JScript functions perform actions. They can also return results. Sometimes these are the results of calculations or comparisons.
    Functions combine several operations under one name. This lets you streamline your code. You can write out a set of statements, name it, and then execute the entire set any time you want to, just by calling it and passing to it any information it needs.You pass information to a function by enclosing the information in parentheses after the name of the function. Pieces of information that are being passed to a function are called arguments or parameters. Some functions don't take any arguments at all; some functions take one argument; some take several. There are even functions for which the number of arguments depends on how you are using the function.JScript supports two kinds of functions: those that are built into the language, and those you create yourself.