Skip to content
Mpx 框架
Main Navigation 指南
框架 API
基础 API新
文章更新记录

外观

Sidebar Navigation

环境 API

基础

base64ToArrayBuffer

arrayBufferToBase64

系统

getSystemInfo

getSystemInfoSync

getWindowInfo

getDeviceInfo

小程序

生命周期

getEnterOptionsSync

getLaunchOptionsSync

应用级事件

onAppShow

onAppHide

offAppShow

offAppHide

onError

offError

onUnhandledRejection

offUnhandledRejection

onLazyLoadError

offLazyLoadError

路由

navigateTo

redirectTo

switchTab

reLaunch

navigateBack

界面

交互

showActionSheet

showModal

enableAlertBeforeUnload

disableAlertBeforeUnload

showToast

hideToast

showLoading

hideLoading

导航栏

hideHomeButton

setNavigationBarTitle

setNavigationBarColor

Tab Bar

hideTabBar

showTabBar

setTabBarStyle

setTabBarItem

下拉刷新

stopPullDownRefresh

startPullDownRefresh

滚动

pageScrollTo

动画

createAnimation

自定义组件

nextTick

菜单

getMenuButtonBoundingClientRect

窗口

onWindowResize

offWindowResize

网络

发起请求

request

下载

downloadFile

上传

uploadFile

WebSocket

connectSocket

支付

requestPayment

数据缓存

setStorage

setStorageSync

getStorage

getStorageSync

removeStorage

removeStorageSync

clearStorage

clearStorageSync

getStorageInfo

getStorageInfoSync

画布

canvasToTempFilePath

canvasGetImageData

媒体

音频

createInnerAudioContext

图片

previewImage

compressImage

getImageInfo