如果您的cfm中有多个功能(即使您没有),也可以将它们放在cfc中。然后,您可以使用以下url模式调用特定方法。
cfc名为myEntityWS.cfc
<cfcomponent> <cffunction name="updateDescription" access="remote" returntype="string"> <cfargument name="value" type="string" required="yes"> <cftry> your pre here <cfcatch> <cfoutput> #cfcatch.Detail#<br /> #cfcatch.Message#<br /> #cfcatch.tagcontext[1].line#:#cfcatch.tagcontext[1].template# </cfoutput> </cfcatch> </cftry> </cffunction></cfcomponent>
Java脚本
$.get('myEntityWS.cfc?method=updateDescription&value=somevalue');


