Overloaded function in classic asp JScript
Is it pos开发者_高级运维sible to have an overloaded function in classic asp JScript
No. The last function will overwrite/replace the functions with the same name defined before it.
Read How does Classic ASP (vbscript) handel duplicate Function names
No. The last definition of a function is the one that will be used.
For the best way to give your function added functionality in different contexts, try using one of the techniques described in Function overloading in Javascript - Best practices, or perhaps this technique mentioned by John Resig might suit your purposes better.
精彩评论