uni.showLeftWindow(options)
显示 leftWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=showLeftWindow
showLeftWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.showRightWindow(options)
显示 rightWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=showRightWindow
showRightWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.showTopWindow(options)
显示 topWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=showTopWindow
showTopWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.hideLeftWindow(options)
隐藏 leftWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=hideLeftWindow
hideLeftWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.hideRightWindow(options)
隐藏 rightWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=hideRightWindow
hideRightWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.hideTopWindow(options)
隐藏 topWindow 窗体
文档: http://uniapp.dcloud.io/api/ui/adapt?id=hideTopWindow
hideTopWindow 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | UniNamespace.CommonOptions | 是 | |
| 名称 | 类型 | 必备 | 兼容性 | 描述 | | success | (result: any) => void | 否 | | 接口调用成功的回调函数 | | fail | (result: any) => void | 否 | | 接口调用失败的回调函数 | | complete | (result: any) => void | 否 | | 接口调用结束的回调函数(调用成功、失败都会执行) |
|
参见
uni.getTopWindowStyle()
获取topWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=getTopWindowStyle
getTopWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
返回值
参见
uni.getLeftWindowStyle()
获取leftWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=getLeftWindowStyle
getLeftWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
返回值
参见
uni.getRightWindowStyle()
获取rightWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=getRightWindowStyle
getRightWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
返回值
参见
uni.setTopWindowStyle(options)
设置topWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=setTopWindowStyle
setTopWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | string | 是 | |
| 合法值 | 兼容性 | | Partial<CSSStyleDeclaration> | | | string.CSSURIString | |
|
参见
uni.setLeftWindowStyle(options)
设置leftWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=setLeftWindowStyle
setLeftWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | string | 是 | |
| 合法值 | 兼容性 | | Partial<CSSStyleDeclaration> | | | string.CSSURIString | |
|
参见
uni.setRightWindowStyle(options)
设置rightWindow窗体样式
文档: http://uniapp.dcloud.io/api/ui/adapt?id=setRightWindowStyle
setRightWindowStyle 兼容性 ?
| Web | 微信小程序 | Android | iOS | HarmonyOS |
| 4.0 | x | x | x | x |
参数
| 名称 | 类型 | 必填 | 兼容性 |
| options | string | 是 | |
| 合法值 | 兼容性 | | Partial<CSSStyleDeclaration> | | | string.CSSURIString | |
|
参见
通用类型
GeneralCallbackResult
| 名称 | 类型 | 必备 | 描述 |
| errMsg | string | 是 | 错误信息 |