Fx构造函数
# new ObjClsQuery(queryParam, gdbp, option)
Zondy.Service.ObjClsQuery
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
queryParam |
Zondy.Service.ObjClsQueryParameter | 对象类查询的参数类。 |
||
gdbp |
String | 对象类的GDBP地址。 |
||
option |
Object | 属性键值对。 |
||
queryParam |
Zondy.Object.QueryByLayerParameter |
<optional> |
null | 查询参数信息 |
继承关系
方法
# query(onSuccess, onError, requestType)
执行查询
参数:
名称 | 类型 | 描述 |
---|---|---|
onSuccess |
function | 查询成功回调函数。 |
onError |
function | 查询失败回调函数。 |
requestType |
Boolean | 请求类型,根据Boolean判断走GET还是POST请求。 |
# restQuery(restUrl, dataObject, onSuccess, way, onError, resultFormat)
开始查询
参数:
名称 | 类型 | 描述 |
---|---|---|
restUrl |
String | 查询路径。 |
dataObject |
Object | 数据对象。 |
onSuccess |
function | 查询成功回调函数。 |
way |
String | 请求方式 GET|POST |
onError |
function | 查询失败回调函数。 |
resultFormat |
String | 结果返回格式。 |