Overloaded function in classic asp JScript
是否有可能在传统的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.
链接地址: http://www.djcxy.com/p/51990.html上一篇: Javascript:配置模式
下一篇: 经典的asp JScript中的重载函数