Skip to content

抖音兼容矩阵 · 界面

界面

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`

hideLoading

native

抖音目标方法

hideLoading

策略说明

  • 微信:直连 `wx.hideLoading`
  • 抖音:直连 `tt.hideLoading`

hideNavigationBarLoading

native

抖音目标方法

hideNavigationBarLoading

策略说明

  • 微信:直连 `wx.hideNavigationBarLoading`
  • 抖音:直连 `tt.hideNavigationBarLoading`

hideTabBar

native

抖音目标方法

hideTabBar

策略说明

  • 微信:直连 `wx.hideTabBar`
  • 抖音:直连 `tt.hideTabBar`

hideTabBarRedDot

native

抖音目标方法

hideTabBarRedDot

策略说明

  • 微信:直连 `wx.hideTabBarRedDot`
  • 抖音:直连 `tt.hideTabBarRedDot`

hideToast

native

抖音目标方法

hideToast

策略说明

  • 微信:直连 `wx.hideToast`
  • 抖音:直连 `tt.hideToast`

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

pageScrollTo

native

抖音目标方法

pageScrollTo

策略说明

  • 微信:直连 `wx.pageScrollTo`
  • 抖音:直连 `tt.pageScrollTo`

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`

showModal

mapped

显示模态弹窗。

抖音目标方法

showModal

策略说明

  • 微信:直连 `wx.showModal`
  • 抖音:直连 `tt.showModal`

showNavigationBarLoading

native

抖音目标方法

showNavigationBarLoading

策略说明

  • 微信:直连 `wx.showNavigationBarLoading`
  • 抖音:直连 `tt.showNavigationBarLoading`

showTabBar

native

抖音目标方法

showTabBar

策略说明

  • 微信:直连 `wx.showTabBar`
  • 抖音:直连 `tt.showTabBar`

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`

Released under the MIT License.