sElementID .useService( sWebServiceURL , sFriendlyName [ , oUseOptions ] )
useService 参数:
sElementID | Required. The of the element to which the behavior is attached. | ||||||||
sWebServiceURL | Required. String specifying the URL of the Web Service, using one of the following path types. See the examples section, where several variations of this parameter are shown.
| ||||||||
sFriendlyName | Required. String representing a friendly name for the Web Service URL. | ||||||||
oUseOptions | Optional. An instance of the object. |
callService语法:
iCallID = sElementID.sFriendlyName .callService( [ oCallHandler ] , fo , oParam )
callService参数:
sElementID | Required. The of the element to which the behavior is attached. | ||||
sFriendlyName | Required. The friendly name for the Web Service, which is defined by calling the method. | ||||
oCallHandler | Optional. Name of a script callback function that handles the results returned from this instance of the method call. | ||||
fo | Required. One of the following possible values.
| ||||
oParam | Required. One or more comma-delimited parameters, which are passed to the method name specified by fo. |