Class: AjaxCallService

AjaxCallService(sourceElementopt)

new AjaxCallService(sourceElementopt)

Parameters:
Name Type Attributes Description
sourceElement Document | Element <optional>
Source:

Members

beforeSend

发送请求前调用
Source:

Methods

callService(url, dataopt, optsopt) → {AjaxResult}

调用远程接口
Parameters:
Name Type Attributes Description
url string
data * <optional>
opts PlainObject <optional>
Source:
Returns:
Type
AjaxResult

convertData(data, opts) → {*}

转换发送到服务器的数据
Parameters:
Name Type Description
data *
opts PlainObject
Source:
Returns:
Type
*