抖音兼容矩阵 · 界面
界面
checkIsPictureInPictureActive
unsupported检测是否处于画中画状态。
抖音目标方法
checkIsPictureInPictureActive
策略说明
- 微信:直连 `wx.checkIsPictureInPictureActive`
- 抖音:无同等 API,调用时按 unsupported 报错
createAnimation
native抖音目标方法
createAnimation
策略说明
- 微信:直连 `wx.createAnimation`
- 抖音:直连 `tt.createAnimation`
disableAlertBeforeUnload
unsupported抖音目标方法
disableAlertBeforeUnload
策略说明
- 微信:直连 `wx.disableAlertBeforeUnload`
- 抖音:未提供 tt.disableAlertBeforeUnload,调用时将返回 not supported
enableAlertBeforeUnload
unsupported抖音目标方法
enableAlertBeforeUnload
策略说明
- 微信:直连 `wx.enableAlertBeforeUnload`
- 抖音:未提供 tt.enableAlertBeforeUnload,调用时将返回 not supported
getMenuButtonBoundingClientRect
native抖音目标方法
getMenuButtonBoundingClientRect
策略说明
- 微信:直连 `wx.getMenuButtonBoundingClientRect`
- 抖音:直连 `tt.getMenuButtonBoundingClientRect`
hideHomeButton
mapped隐藏返回首页按钮。
抖音目标方法
hideHomeButton
策略说明
- 微信:直连 `wx.hideHomeButton`
- 抖音:直连 `tt.hideHomeButton`
hideNavigationBarLoading
native抖音目标方法
hideNavigationBarLoading
策略说明
- 微信:直连 `wx.hideNavigationBarLoading`
- 抖音:直连 `tt.hideNavigationBarLoading`
hideTabBarRedDot
native抖音目标方法
hideTabBarRedDot
策略说明
- 微信:直连 `wx.hideTabBarRedDot`
- 抖音:直连 `tt.hideTabBarRedDot`
loadBuiltInFontFace
unsupported加载内置字体。
抖音目标方法
loadBuiltInFontFace
策略说明
- 微信:直连 `wx.loadBuiltInFontFace`
- 抖音:无同等 API,调用时按 unsupported 报错
loadFontFace
unsupported抖音目标方法
loadFontFace
策略说明
- 微信:直连 `wx.loadFontFace`
- 抖音:未提供 tt.loadFontFace,调用时将返回 not supported
nextTick
unsupported延迟到下一个 UI 更新时机执行回调。
抖音目标方法
nextTick
策略说明
- 微信:直连 `wx.nextTick`
- 抖音:无同等 API,调用时按 unsupported 报错
offMenuButtonBoundingClientRectWeightChange
unsupported抖音目标方法
offMenuButtonBoundingClientRectWeightChange
策略说明
- 微信:直连 `wx.offMenuButtonBoundingClientRectWeightChange`
- 抖音:未提供 tt.offMenuButtonBoundingClientRectWeightChange,调用时将返回 not supported
offParallelStateChange
unsupported抖音目标方法
offParallelStateChange
策略说明
- 微信:直连 `wx.offParallelStateChange`
- 抖音:未提供 tt.offParallelStateChange,调用时将返回 not supported
offUserOffTranslation
unsupported抖音目标方法
offUserOffTranslation
策略说明
- 微信:直连 `wx.offUserOffTranslation`
- 抖音:未提供 tt.offUserOffTranslation,调用时将返回 not supported
offUserTriggerTranslation
unsupported抖音目标方法
offUserTriggerTranslation
策略说明
- 微信:直连 `wx.offUserTriggerTranslation`
- 抖音:未提供 tt.offUserTriggerTranslation,调用时将返回 not supported
offWindowResize
mapped取消监听窗口尺寸变化事件。
抖音目标方法
offWindowResize
策略说明
- 微信:直连 `wx.offWindowResize`
- 抖音:直连 `tt.offWindowResize`
offWindowStateChange
unsupported抖音目标方法
offWindowStateChange
策略说明
- 微信:直连 `wx.offWindowStateChange`
- 抖音:未提供 tt.offWindowStateChange,调用时将返回 not supported
onMenuButtonBoundingClientRectWeightChange
unsupported抖音目标方法
onMenuButtonBoundingClientRectWeightChange
策略说明
- 微信:直连 `wx.onMenuButtonBoundingClientRectWeightChange`
- 抖音:未提供 tt.onMenuButtonBoundingClientRectWeightChange,调用时将返回 not supported
onParallelStateChange
unsupported抖音目标方法
onParallelStateChange
策略说明
- 微信:直连 `wx.onParallelStateChange`
- 抖音:未提供 tt.onParallelStateChange,调用时将返回 not supported
onUserOffTranslation
unsupported抖音目标方法
onUserOffTranslation
策略说明
- 微信:直连 `wx.onUserOffTranslation`
- 抖音:未提供 tt.onUserOffTranslation,调用时将返回 not supported
onUserTriggerTranslation
unsupported抖音目标方法
onUserTriggerTranslation
策略说明
- 微信:直连 `wx.onUserTriggerTranslation`
- 抖音:未提供 tt.onUserTriggerTranslation,调用时将返回 not supported
onWindowResize
mapped监听窗口尺寸变化事件。
抖音目标方法
onWindowResize
策略说明
- 微信:直连 `wx.onWindowResize`
- 抖音:直连 `tt.onWindowResize`
onWindowStateChange
unsupported抖音目标方法
onWindowStateChange
策略说明
- 微信:直连 `wx.onWindowStateChange`
- 抖音:未提供 tt.onWindowStateChange,调用时将返回 not supported
removeTabBarBadge
native抖音目标方法
removeTabBarBadge
策略说明
- 微信:直连 `wx.removeTabBarBadge`
- 抖音:直连 `tt.removeTabBarBadge`
setBackgroundColor
unsupported动态设置窗口背景色。
抖音目标方法
setBackgroundColor
策略说明
- 微信:直连 `wx.setBackgroundColor`
- 抖音:无同等 API,调用时按 unsupported 报错
setBackgroundTextStyle
unsupported动态设置下拉背景字体样式。
抖音目标方法
setBackgroundTextStyle
策略说明
- 微信:直连 `wx.setBackgroundTextStyle`
- 抖音:无同等 API,调用时按 unsupported 报错
setNavigationBarColor
native抖音目标方法
setNavigationBarColor
策略说明
- 微信:直连 `wx.setNavigationBarColor`
- 抖音:直连 `tt.setNavigationBarColor`
setNavigationBarTitle
native抖音目标方法
setNavigationBarTitle
策略说明
- 微信:直连 `wx.setNavigationBarTitle`
- 抖音:直连 `tt.setNavigationBarTitle`
setTabBarBadge
native抖音目标方法
setTabBarBadge
策略说明
- 微信:直连 `wx.setTabBarBadge`
- 抖音:直连 `tt.setTabBarBadge`
setTabBarItem
native抖音目标方法
setTabBarItem
策略说明
- 微信:直连 `wx.setTabBarItem`
- 抖音:直连 `tt.setTabBarItem`
setTabBarStyle
native抖音目标方法
setTabBarStyle
策略说明
- 微信:直连 `wx.setTabBarStyle`
- 抖音:直连 `tt.setTabBarStyle`
setTopBarText
unsupported设置顶栏文本。
抖音目标方法
setTopBarText
策略说明
- 微信:直连 `wx.setTopBarText`
- 抖音:无同等 API,调用时按 unsupported 报错
setWindowSize
unsupported设置窗口尺寸。
抖音目标方法
setWindowSize
策略说明
- 微信:直连 `wx.setWindowSize`
- 抖音:无同等 API,调用时按 unsupported 报错
showActionSheet
mapped显示操作菜单。
抖音目标方法
showActionSheet
策略说明
- 微信:直连 `wx.showActionSheet`
- 抖音:直连 `tt.showActionSheet`;缺失时按 unsupported 报错
showLoading
mapped显示 loading 提示框。
抖音目标方法
showLoading
策略说明
- 微信:直连 `wx.showLoading`
- 抖音:直连 `tt.showLoading`
showNavigationBarLoading
native抖音目标方法
showNavigationBarLoading
策略说明
- 微信:直连 `wx.showNavigationBarLoading`
- 抖音:直连 `tt.showNavigationBarLoading`
showTabBarRedDot
native抖音目标方法
showTabBarRedDot
策略说明
- 微信:直连 `wx.showTabBarRedDot`
- 抖音:直连 `tt.showTabBarRedDot`
showToast
mapped显示消息提示框。
抖音目标方法
showToast
策略说明
- 微信:直连 `wx.showToast`
- 抖音:`icon=error` 映射为 `fail` 后调用 `tt.showToast`
startPullDownRefresh
native抖音目标方法
startPullDownRefresh
策略说明
- 微信:直连 `wx.startPullDownRefresh`
- 抖音:直连 `tt.startPullDownRefresh`
stopPullDownRefresh
native抖音目标方法
stopPullDownRefresh
策略说明
- 微信:直连 `wx.stopPullDownRefresh`
- 抖音:直连 `tt.stopPullDownRefresh`