网络请求模块
Methods
(static) contextPath(url)
获取上下文地址
Parameters:
Name | Type | Description |
---|---|---|
url |
string | undefined | 获取当前、或者参数地址的上下文地址 |
Returns:
上下文地址
(async, static) get(params)
GET请求
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 调用参数,属性如下
Properties
|
(async, static) post(params)
POST请求
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 调用参数,属性如下
Properties
|
(async, inner) callAction(data, model)
调用模型指令
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
data |
object | 调用模型方法传递的参数 | |||||||||
model |
object | 模型对象,参数如下
Properties
|
(inner) setConfigs(params)
设置调用参数
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | 调用参数,属性如下
Properties
|