移动开发平台文档
H5云组件
H5云组件
LightAPP
小程序
JSSDK
UI
wx.clearStorageSync()
wx.clearStorage
的同步版本。
从本地缓存中同步清空storage。
示例代码
wx.clearStorageSync()
移动开发平台文档
基础
console
定时器
wx.getSystemInfoSync
wx.getSystemInfo
路由
wx.switchTab
wx.navigateTo
wx.navigateBack
wx.redirectTo
界面
wx.pageScrollTo
wx.showToast
wx.hideToast
wx.showLoading
wx.hideLoading
wx.showModal
wx.startPullDownRefresh
wx.stopPullDownRefresh
wx.hideKeyboard
wx.showTabBar
wx.setTabBarBadge
wx.removeTabBarBadge
wx.showTabBarRedDot
wx.hideTabBarRedDot
wx.setTabBarStyle
wx.setTabBarItem
wx.setNavigationBarTitle
wx.setNavigationBarColor
wx.setBackgroundColor
wx.showNavigationBarLoading
wx.hideNavigationBarLoading
wx.getMenuButtonBoundingClientRect
wx.createAnimation
定位
wx.getLocation
wx.startLocationUpdate
wx.stopLocationUpdate
wx.onLocationChange
wx.offLocationChange
扫码
wx.scanCode
画布
canvas
网络
wx.request
wx.connectSocket
SocketTask
文件
gmu.chooseFile
wx.uploadFile
wx.downloadFile
wx.getFileInfo
wx.saveFile
wx.getSavedFileList
wx.getSavedFileInfo
数据缓存
wx.setStorage
wx.setStorageSync
wx.getStorage
wx.getStorageSync
wx.removeStorage
wx.removeStorageSync
wx.getStorageInfo
wx.getStorageInfoSync
wx.clearStorage
wx.clearStorageSync
媒体
gmu.chooseImage
wx.chooseImage
gmu.compressImage
wx.getImageInfo
wx.saveImageToPhotosAlbum
wx.previewImage
wx.stopVoice
wx.playVoice
wx.pauseVoice
wx.createAudioContext
wx.createInnerAudioContext
开放接口
wx.login
wx.checkSession
wx.authorize
wx.getUserInfo
gmu.getSensitiveInfo
wx.navigateToMiniProgram
wx.navigateBackMiniProgram
生物认证
wx.startSoterAuthentication
wx.checkIsSoterEnrolledInDevice
wx.checkIsSupportSoterAuthentication
加速度
wx.startAccelerometer
wx.stopAccelerometer
wx.onAccelerometerChange
wx.offAccelerometerChange
国密
gmu.createCrypto
键盘
gmu.createKeyBoard
日历
gmu.createCalendar
gmu.updateCalendar
gmu.deleteCalendar
gmu.queryCalendar
设备
wx.getClipboardData
wx.setClipboardData
wx.getNetworkType
wx.makePhoneCall
wx.vibrateShort
wx.vibrateLong
WXML
wx.createSelectorQuery
第三方平台
wx.getExtConfig
wx.getExtConfigSync
多平台支持
接口