@@ -30,13 +30,13 @@ import {
30
30
* @class SuperMap.CommonServiceBase
31
31
* @category iServer
32
32
* @classdesc 对接iServer各种服务的Service的基类。
33
- * @param url - {string} 服务地址。
34
- * @param options - {Object} 可选参数。如: <br>
35
- * eventListeners - {Object} 事件监听器对象。有processCompleted属性可传入处理完成后的回调函数。processFailed属性传入处理失败后的回调函数。<br>
36
- * proxy - {string} 服务代理地址<br>
37
- * serverType - {SuperMap.ServerType} 服务器类型,iServer|iPortal|Online。<br>
38
- * withCredentials - {boolean} 请求是否携带cookie,默认为false。<br>
39
- * format - {SuperMap.DataFormat} 查询结果返回格式,目前支持iServerJSON 和GeoJSON两种格式。参数格式为"ISERVER","GEOJSON"。
33
+ * @param {string } url - 服务地址。
34
+ * @param {Object } options - 参数。 <br>
35
+ * @param { Object } options. eventListeners - 事件监听器对象。有processCompleted属性可传入处理完成后的回调函数。processFailed属性传入处理失败后的回调函数。
36
+ * @param { string } options. proxy - 服务代理地址。
37
+ * @param {SuperMap.ServerType } options.serverType - 服务器类型,iServer|iPortal|Online。
38
+ * @param { boolean } options. withCredentials - 请求是否携带cookie,默认为false。
39
+ * @param {SuperMap.DataFormat } options.format - 查询结果返回格式,目前支持iServerJSON 和GeoJSON两种格式。参数格式为"ISERVER","GEOJSON"。
40
40
*/
41
41
export class CommonServiceBase {
42
42
@@ -144,16 +144,16 @@ export class CommonServiceBase {
144
144
/**
145
145
* @function SuperMap.CommonServiceBase.prototype.request
146
146
* @description : 该方法用于向服务发送请求。
147
- * @param options - {Object} 参数。
148
- * method - {string} 请求方式,包括"GET","POST","PUT","DELETE"。<br>
149
- * url - {string} 发送请求的地址。<br>
150
- * params - {Object} 作为查询字符串添加到url中的一组键值对,此参数只适用于GET方式发送的请求。<br>
151
- * data - {String } 发送到服务器的数据。<br>
152
- * success - {function} 请求成功后的回调函数。<br>
153
- * failure - {function} 请求失败后的回调函数。<br>
154
- * scope - {Object} 如果回调函数是对象的一个公共方法,设定该对象的范围。<br>
155
- * isInTheSameDomain - {boolean} 请求是否在当前域中。<br>
156
- * withCredentials - {boolean} 请求是否携带cookie。<br>
147
+ * @param {Object } options - 参数。
148
+ * @param { string } options. method - 请求方式,包括"GET","POST","PUT","DELETE"。<br>
149
+ * @param {string } options.url - 发送请求的地址。<br>
150
+ * @param { Object } options. params - 作为查询字符串添加到url中的一组键值对,此参数只适用于GET方式发送的请求。<br>
151
+ * @param { String } options. data - 发送到服务器的数据。<br>
152
+ * @param { function } options. success - 请求成功后的回调函数。<br>
153
+ * @param { function } options. failure - 请求失败后的回调函数。<br>
154
+ * @param { Object } options. scope - 如果回调函数是对象的一个公共方法,设定该对象的范围。<br>
155
+ * @param { boolean } options. isInTheSameDomain - 请求是否在当前域中。<br>
156
+ * @param { boolean } options. withCredentials - 请求是否携带cookie。<br>
157
157
*/
158
158
request ( options ) {
159
159
let me = this ;
@@ -190,7 +190,7 @@ export class CommonServiceBase {
190
190
/**
191
191
* @function SuperMap.CommonServiceBase.prototype.getCredential
192
192
* @description 获取凭据信息
193
- * @param url - {string} 服务地址。
193
+ * @param {string } url - 服务地址。
194
194
* @return {SuperMap.Credential } 凭据信息对象。
195
195
*/
196
196
getCredential ( url ) {
@@ -221,7 +221,7 @@ export class CommonServiceBase {
221
221
/**
222
222
* @function SuperMap.CommonServiceBase.prototype.getUrlCompleted
223
223
* @description 请求成功后执行此方法。
224
- * @param result - {Object} 服务器返回的结果对象。
224
+ * @param {Object } result - 服务器返回的结果对象。
225
225
*/
226
226
getUrlCompleted ( result ) {
227
227
let me = this ;
@@ -232,7 +232,7 @@ export class CommonServiceBase {
232
232
/**
233
233
* @function SuperMap.CommonServiceBase.prototype.getUrlFailed
234
234
* @description 请求失败后执行此方法。
235
- * @param result - {Object} 服务器返回的结果对象。
235
+ * @param {Object } result - 服务器返回的结果对象。
236
236
*/
237
237
getUrlFailed ( result ) {
238
238
let me = this ;
@@ -305,7 +305,7 @@ export class CommonServiceBase {
305
305
/**
306
306
* @function SuperMap.CommonServiceBase.prototype.serviceProcessCompleted
307
307
* @description 状态完成,执行此方法。
308
- * @param result - {Object} 服务器返回的结果对象。
308
+ * @param {Object } result - 服务器返回的结果对象。
309
309
*/
310
310
serviceProcessCompleted ( result ) {
311
311
result = Util . transformResult ( result ) ;
@@ -317,7 +317,7 @@ export class CommonServiceBase {
317
317
/**
318
318
* @function SuperMap.CommonServiceBase.prototype.serviceProcessFailed
319
319
* @description 状态失败,执行此方法。
320
- * @param result - {Object} 服务器返回的结果对象。
320
+ * @param { Object } result - 服务器返回的结果对象。
321
321
*/
322
322
serviceProcessFailed ( result ) {
323
323
result = Util . transformResult ( result ) ;
0 commit comments