<!--- sth.cfc--->
<cfcomponent>
<cffunction name="hello" access="public" returntype="string">
<cfreturn "bala bala bala">
</cffunction>
</cfcomponent>
<!--- test.cfm --->
<cfscript>
obj = createObject("component", "sth");
clone = duplicate(obj);
writeOutput(clone.hello());
</cfscript>
象Flash中的duplicateMovieClip()