工具类
拆分整体逻辑到块级逻辑,通过函数将块级逻辑和表单实例关联起来,可以让表单更加灵活和强大。
函数列表
上下文携带信息 outInfo
使用方法
ctx.outInfo; // { ... }
发起 http 请求 http
使用方法
ctx.http.get(url, params, config);
ctx.http.post(url, data, config);
ctx.http.postForm(url, data, config);
// ...
数据源 datasource
使用方法
// 不带参数
ctx.datasource.xxxx()
// 传参数
ctx.datasource.xxxx(arg1, arg2, ...)
工具方法和变量 utils
使用方法
// 方法
// 不带参数
ctx.utils.xxxx()
// 传参数
ctx.utils.xxxx(arg1, arg2, ...)
// 变量
ctx.utils.xxx; // ...
代码块 block
信息
智能入参提示已经上线
使用方法
// 方法
// 不带参数
ctx.block.xxxx()
// 传参数
ctx.block.xxxx(arg1, arg2, ...)
// 变量
ctx.block.xxx; // ...