开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜