Fx构造函数
# new ServiceBase(options)
服务基类
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
options |
Object | 属性键值对 |
||
baseUrl |
String |
<optional> |
null | 基地址 |
option.domain |
String |
<optional> |
'' | 【domain和(networkProtocol,ip,port)二选一】。域名 |
option.networkProtocol |
String |
<optional> |
location.protocol.split(":")[0] || "http" | 【domain和(networkProtocol,ip,port)二选一】。网络协议 |
option.ip |
String |
<optional> |
localhost | 【domain和(networkProtocol,ip,port)二选一】。地图服务ip |
option.port |
String |
<optional> |
6163 | 【domain和(networkProtocol,ip,port)二选一】。地图服务端口 |
options.partUrl |
String |
<optional> |
null | 服务地址 |