<!--- 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()

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2022-02-14
  • 2021-11-09
  • 2021-06-20
  • 2022-01-29
猜你喜欢
  • 2022-02-03
  • 2021-10-04
  • 2021-07-14
  • 2021-06-07
  • 2021-10-18
  • 2022-02-13
  • 2022-12-23
相关资源
相似解决方案