Skip to content

支付宝兼容矩阵 · 界面

界面

checkIsPictureInPictureActive

unsupported

检测是否处于画中画状态。

支付宝目标方法

checkIsPictureInPictureActive

策略说明

  • 微信:直连 `wx.checkIsPictureInPictureActive`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createAnimation

native

支付宝目标方法

createAnimation

策略说明

  • 微信:直连 `wx.createAnimation`
  • 支付宝:直连 `my.createAnimation`

disableAlertBeforeUnload

native

支付宝目标方法

disableAlertBeforeUnload

策略说明

  • 微信:直连 `wx.disableAlertBeforeUnload`
  • 支付宝:直连 `my.disableAlertBeforeUnload`

enableAlertBeforeUnload

native

支付宝目标方法

enableAlertBeforeUnload

策略说明

  • 微信:直连 `wx.enableAlertBeforeUnload`
  • 支付宝:直连 `my.enableAlertBeforeUnload`

getMenuButtonBoundingClientRect

native

支付宝目标方法

getMenuButtonBoundingClientRect

策略说明

  • 微信:直连 `wx.getMenuButtonBoundingClientRect`
  • 支付宝:直连 `my.getMenuButtonBoundingClientRect`

hideHomeButton

mapped

隐藏返回首页按钮。

支付宝目标方法

hideBackHome

策略说明

  • 微信:直连 `wx.hideHomeButton`
  • 支付宝:映射到 `my.hideBackHome`

hideLoading

native

支付宝目标方法

hideLoading

策略说明

  • 微信:直连 `wx.hideLoading`
  • 支付宝:直连 `my.hideLoading`

hideNavigationBarLoading

native

支付宝目标方法

hideNavigationBarLoading

策略说明

  • 微信:直连 `wx.hideNavigationBarLoading`
  • 支付宝:直连 `my.hideNavigationBarLoading`

hideTabBar

native

支付宝目标方法

hideTabBar

策略说明

  • 微信:直连 `wx.hideTabBar`
  • 支付宝:直连 `my.hideTabBar`

hideTabBarRedDot

native

支付宝目标方法

hideTabBarRedDot

策略说明

  • 微信:直连 `wx.hideTabBarRedDot`
  • 支付宝:直连 `my.hideTabBarRedDot`

hideToast

native

支付宝目标方法

hideToast

策略说明

  • 微信:直连 `wx.hideToast`
  • 支付宝:直连 `my.hideToast`

loadBuiltInFontFace

unsupported

加载内置字体。

支付宝目标方法

loadBuiltInFontFace

策略说明

  • 微信:直连 `wx.loadBuiltInFontFace`
  • 支付宝:无同等 API,调用时按 unsupported 报错

loadFontFace

native

支付宝目标方法

loadFontFace

策略说明

  • 微信:直连 `wx.loadFontFace`
  • 支付宝:直连 `my.loadFontFace`

nextTick

unsupported

延迟到下一个 UI 更新时机执行回调。

支付宝目标方法

nextTick

策略说明

  • 微信:直连 `wx.nextTick`
  • 支付宝:无同等 API,调用时按 unsupported 报错

offMenuButtonBoundingClientRectWeightChange

unsupported

支付宝目标方法

offMenuButtonBoundingClientRectWeightChange

策略说明

  • 微信:直连 `wx.offMenuButtonBoundingClientRectWeightChange`
  • 支付宝:未提供 my.offMenuButtonBoundingClientRectWeightChange,调用时将返回 not supported

offParallelStateChange

unsupported

支付宝目标方法

offParallelStateChange

策略说明

  • 微信:直连 `wx.offParallelStateChange`
  • 支付宝:未提供 my.offParallelStateChange,调用时将返回 not supported

offUserOffTranslation

unsupported

支付宝目标方法

offUserOffTranslation

策略说明

  • 微信:直连 `wx.offUserOffTranslation`
  • 支付宝:未提供 my.offUserOffTranslation,调用时将返回 not supported

offUserTriggerTranslation

unsupported

支付宝目标方法

offUserTriggerTranslation

策略说明

  • 微信:直连 `wx.offUserTriggerTranslation`
  • 支付宝:未提供 my.offUserTriggerTranslation,调用时将返回 not supported

offWindowResize

unsupported

取消监听窗口尺寸变化事件。

支付宝目标方法

offWindowResize

策略说明

  • 微信:直连 `wx.offWindowResize`
  • 支付宝:无同等 API,调用时按 unsupported 报错

offWindowStateChange

unsupported

支付宝目标方法

offWindowStateChange

策略说明

  • 微信:直连 `wx.offWindowStateChange`
  • 支付宝:未提供 my.offWindowStateChange,调用时将返回 not supported

onMenuButtonBoundingClientRectWeightChange

unsupported

支付宝目标方法

onMenuButtonBoundingClientRectWeightChange

策略说明

  • 微信:直连 `wx.onMenuButtonBoundingClientRectWeightChange`
  • 支付宝:未提供 my.onMenuButtonBoundingClientRectWeightChange,调用时将返回 not supported

onParallelStateChange

unsupported

支付宝目标方法

onParallelStateChange

策略说明

  • 微信:直连 `wx.onParallelStateChange`
  • 支付宝:未提供 my.onParallelStateChange,调用时将返回 not supported

onUserOffTranslation

unsupported

支付宝目标方法

onUserOffTranslation

策略说明

  • 微信:直连 `wx.onUserOffTranslation`
  • 支付宝:未提供 my.onUserOffTranslation,调用时将返回 not supported

onUserTriggerTranslation

unsupported

支付宝目标方法

onUserTriggerTranslation

策略说明

  • 微信:直连 `wx.onUserTriggerTranslation`
  • 支付宝:未提供 my.onUserTriggerTranslation,调用时将返回 not supported

onWindowResize

unsupported

监听窗口尺寸变化事件。

支付宝目标方法

onWindowResize

策略说明

  • 微信:直连 `wx.onWindowResize`
  • 支付宝:无同等 API,调用时按 unsupported 报错

onWindowStateChange

unsupported

支付宝目标方法

onWindowStateChange

策略说明

  • 微信:直连 `wx.onWindowStateChange`
  • 支付宝:未提供 my.onWindowStateChange,调用时将返回 not supported

pageScrollTo

native

支付宝目标方法

pageScrollTo

策略说明

  • 微信:直连 `wx.pageScrollTo`
  • 支付宝:直连 `my.pageScrollTo`

removeTabBarBadge

native

支付宝目标方法

removeTabBarBadge

策略说明

  • 微信:直连 `wx.removeTabBarBadge`
  • 支付宝:直连 `my.removeTabBarBadge`

setBackgroundColor

mapped

动态设置窗口背景色。

支付宝目标方法

setBackgroundColor

策略说明

  • 微信:直连 `wx.setBackgroundColor`
  • 支付宝:直连 `my.setBackgroundColor`

setBackgroundTextStyle

mapped

动态设置下拉背景字体样式。

支付宝目标方法

setBackgroundTextStyle

策略说明

  • 微信:直连 `wx.setBackgroundTextStyle`
  • 支付宝:直连 `my.setBackgroundTextStyle`

setNavigationBarColor

native

支付宝目标方法

setNavigationBarColor

策略说明

  • 微信:直连 `wx.setNavigationBarColor`
  • 支付宝:直连 `my.setNavigationBarColor`

setNavigationBarTitle

native

支付宝目标方法

setNavigationBarTitle

策略说明

  • 微信:直连 `wx.setNavigationBarTitle`
  • 支付宝:直连 `my.setNavigationBarTitle`

setTabBarBadge

native

支付宝目标方法

setTabBarBadge

策略说明

  • 微信:直连 `wx.setTabBarBadge`
  • 支付宝:直连 `my.setTabBarBadge`

setTabBarItem

native

支付宝目标方法

setTabBarItem

策略说明

  • 微信:直连 `wx.setTabBarItem`
  • 支付宝:直连 `my.setTabBarItem`

setTabBarStyle

native

支付宝目标方法

setTabBarStyle

策略说明

  • 微信:直连 `wx.setTabBarStyle`
  • 支付宝:直连 `my.setTabBarStyle`

setTopBarText

unsupported

设置顶栏文本。

支付宝目标方法

setTopBarText

策略说明

  • 微信:直连 `wx.setTopBarText`
  • 支付宝:无同等 API,调用时按 unsupported 报错

setWindowSize

unsupported

设置窗口尺寸。

支付宝目标方法

setWindowSize

策略说明

  • 微信:直连 `wx.setWindowSize`
  • 支付宝:无同等 API,调用时按 unsupported 报错

showActionSheet

mapped

显示操作菜单。

支付宝目标方法

showActionSheet

策略说明

  • 微信:直连 `wx.showActionSheet`
  • 支付宝:`itemList` ↔ `items`、`index` ↔ `tapIndex` 双向对齐

showLoading

mapped

显示 loading 提示框。

支付宝目标方法

showLoading

策略说明

  • 微信:直连 `wx.showLoading`
  • 支付宝:`title` 映射到 `content` 后调用 `my.showLoading`

showModal

mapped

显示模态弹窗。

支付宝目标方法

confirm

策略说明

  • 微信:直连 `wx.showModal`
  • 支付宝:调用 `my.confirm` 并对齐按钮字段与 `cancel/content`;`showCancel=false`、`editable` 等场景按 unsupported 报错

showNavigationBarLoading

native

支付宝目标方法

showNavigationBarLoading

策略说明

  • 微信:直连 `wx.showNavigationBarLoading`
  • 支付宝:直连 `my.showNavigationBarLoading`

showTabBar

native

支付宝目标方法

showTabBar

策略说明

  • 微信:直连 `wx.showTabBar`
  • 支付宝:直连 `my.showTabBar`

showTabBarRedDot

native

支付宝目标方法

showTabBarRedDot

策略说明

  • 微信:直连 `wx.showTabBarRedDot`
  • 支付宝:直连 `my.showTabBarRedDot`

showToast

mapped

显示消息提示框。

支付宝目标方法

showToast

策略说明

  • 微信:直连 `wx.showToast`
  • 支付宝:`title/icon` 映射到 `content/type` 后调用 `my.showToast`

startPullDownRefresh

native

支付宝目标方法

startPullDownRefresh

策略说明

  • 微信:直连 `wx.startPullDownRefresh`
  • 支付宝:直连 `my.startPullDownRefresh`

stopPullDownRefresh

native

支付宝目标方法

stopPullDownRefresh

策略说明

  • 微信:直连 `wx.stopPullDownRefresh`
  • 支付宝:直连 `my.stopPullDownRefresh`

Released under the MIT License.