new SuperMap.OnlineServiceBase(options)
common/online/OnlineServiceBase.js, line 9
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
服务参数。
|
Methods
-
request(method, url, param, requestOptions){Promise}
common/online/OnlineServiceBase.js, line 25 -
请求 online 服务
Name Type Default Description methodstring 'GET' 可选 请求方式, 'GET', 'PUT', 'POST', 'DELETE'。
urlstring 服务地址。
paramObject URL 查询参数。
requestOptionsObject 可选 http 请求参数, 比如请求头,超时时间等。
Returns:
Type Description Promise 返回包含请求结果的 Promise 对象。