setBackgroundTextStyle
解释:设置窗口下拉背景loading样式。
参数:Object
Object 参数说明:
参数名 | 类型 | 必填 | 默认值 | 说明 | 最低版本 |
---|---|---|---|---|---|
textStyle | String | 是 | - | loading图样式,仅支持light和dark | 11.3 低版本请做兼容性处理 |
success | Function | 否 | 接口调用成功的回调函数 | - | - |
fail | Function | 否 | 接口调用失败的回调函数 | - | - |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) | - | - |
示例:
- swan.setBackgroundTextStyle({
textStyle: 'light'
});