coldfusion 9 dynamically call method
问题 I'm attempting to build a method call from strings that have been passed into an object that refer to another object. normally when calling an object we write the code like this: application.stObj.oNewsBusiness.getNews(argumentCollection=local.stArgs); However what I have done is created an array that contains the object name, the method name and the argument collection. <cfscript> local.stArgs = {}; local.stArgs.nNewsID = 19; local.stArgs.sAuthor = "John"; local.aData = []; local.aData[1] =