What is the difference between using cfinvoke and createObject to run a component function?
问题 In my company's code, I've often seen component files used by initializing an object of that component and calling the methods off the object. However, it seems to me somewhat more straightforward to use the cfinvoke method, especially when only using one method from the component file. What are the differences between these 2 methods of calling a component function and what are the pros/cons of each? When should I use which? 回答1: cfinvoke can only be used in tags. createObject can be used in