ColdFusion 9 Dynamic Method Call

后端 未结 2 419
傲寒
傲寒 2020-12-18 06:41

I am trying to work out the correct syntax for calling a dynamic method within ColdFusion 9. I have tried a number of variations and had a good

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 07:36

    Assuming the method is in your current (variables) scope, you could try:

    var result = variables[reflectionMethod.getMethodName()](argumentCollection = params);
    

提交回复
热议问题