@@ -30,13 +30,13 @@ import {
3030 * @class SuperMap.CommonServiceBase
3131 * @category iServer
3232 * @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"。
4040 */
4141export class CommonServiceBase {
4242
@@ -144,16 +144,16 @@ export class CommonServiceBase {
144144 /**
145145 * @function SuperMap.CommonServiceBase.prototype.request
146146 * @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>
157157 */
158158 request ( options ) {
159159 let me = this ;
@@ -190,7 +190,7 @@ export class CommonServiceBase {
190190 /**
191191 * @function SuperMap.CommonServiceBase.prototype.getCredential
192192 * @description 获取凭据信息
193- * @param url - {string} 服务地址。
193+ * @param {string } url - 服务地址。
194194 * @return {SuperMap.Credential } 凭据信息对象。
195195 */
196196 getCredential ( url ) {
@@ -221,7 +221,7 @@ export class CommonServiceBase {
221221 /**
222222 * @function SuperMap.CommonServiceBase.prototype.getUrlCompleted
223223 * @description 请求成功后执行此方法。
224- * @param result - {Object} 服务器返回的结果对象。
224+ * @param {Object } result - 服务器返回的结果对象。
225225 */
226226 getUrlCompleted ( result ) {
227227 let me = this ;
@@ -232,7 +232,7 @@ export class CommonServiceBase {
232232 /**
233233 * @function SuperMap.CommonServiceBase.prototype.getUrlFailed
234234 * @description 请求失败后执行此方法。
235- * @param result - {Object} 服务器返回的结果对象。
235+ * @param {Object } result - 服务器返回的结果对象。
236236 */
237237 getUrlFailed ( result ) {
238238 let me = this ;
@@ -305,7 +305,7 @@ export class CommonServiceBase {
305305 /**
306306 * @function SuperMap.CommonServiceBase.prototype.serviceProcessCompleted
307307 * @description 状态完成,执行此方法。
308- * @param result - {Object} 服务器返回的结果对象。
308+ * @param {Object } result - 服务器返回的结果对象。
309309 */
310310 serviceProcessCompleted ( result ) {
311311 result = Util . transformResult ( result ) ;
@@ -317,7 +317,7 @@ export class CommonServiceBase {
317317 /**
318318 * @function SuperMap.CommonServiceBase.prototype.serviceProcessFailed
319319 * @description 状态失败,执行此方法。
320- * @param result - {Object} 服务器返回的结果对象。
320+ * @param { Object } result - 服务器返回的结果对象。
321321 */
322322 serviceProcessFailed ( result ) {
323323 result = Util . transformResult ( result ) ;
0 commit comments