IGServerXService Class

IGServerX.IGServerXService()

Fx构造函数

# new IGServerXService()

DataStore的基础服务

作者:
  • 基础平台-潘卓然

查看源代码 service/Igserver-X/ServiceBase.js, line 6

方法

# get(url, onSuccess, onError)

向服务器发送GET请求

参数:
名称 类型 描述
url String

完整的请求地址。

onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/Igserver-X/ServiceBase.js, line 58

# getBaseUrl()

获取基地址url

查看源代码 service/Igserver-X/ServiceBase.js, line 28

# getFullUrl()

获取完整的url地址

参数:
名称 类型 描述
String
可以使用SpaceTimeQueryByAgg.query方法,也可以使用axios,jquery进行请求 Object

查看源代码 service/Igserver-X/ServiceBase.js, line 45

# post(url, onSuccess, onError)

向服务器发送POST请求

参数:
名称 类型 描述
url String

完整的请求地址。

onSuccess function

查询成功回调函数。

onError function

查询失败回调函数。

查看源代码 service/Igserver-X/ServiceBase.js, line 77