×
思维导图备注
微信小游戏API文档(201912)
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
基础
来源:微信开发者平台
浏览
3818
扫码
分享
2019-12-08 11:06:15
系统
更新
小程序
性能
分包加载
调试
定时器
当前内容版权归
微信开发者平台
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
微信开发者平台
.
上一篇:
下一篇:
基础
系统
系统信息
wx.getSystemInfoSync
wx.getSystemInfo
更新
wx.getUpdateManager
UpdateManager
UpdateManager.applyUpdate
UpdateManager.onCheckForUpdate
UpdateManager.onUpdateFailed
UpdateManager.onUpdateReady
小程序
生命周期
wx.onShow
wx.onHide
wx.offShow
wx.offHide
wx.getLaunchOptionsSync
wx.exitMiniProgram
应用级事件
wx.onError
wx.onAudioInterruptionEnd
wx.onAudioInterruptionBegin
wx.offError
wx.offAudioInterruptionEnd
wx.offAudioInterruptionBegin
触摸事件
wx.onTouchStart
wx.onTouchMove
wx.onTouchEnd
wx.onTouchCancel
wx.offTouchStart
wx.offTouchMove
wx.offTouchEnd
wx.offTouchCancel
Touch
性能
wx.triggerGC
wx.markScene
wx.getPerformance
Performance
Performance.now
分包加载
wx.loadSubpackage
LoadSubpackageTask
LoadSubpackageTask.onProgressUpdate
调试
wx.setEnableDebug
wx.getLogManager
console
console.debug
console.error
console.group
console.groupEnd
console.info
console.log
console.warn
LogManager
LogManager.debug
LogManager.info
LogManager.log
LogManager.warn
定时器
clearInterval
clearTimeout
setInterval
setTimeout
渲染
画布
wx.createCanvas
Canvas
Canvas.getContext
Canvas.toDataURL
Canvas.toTempFilePath
Canvas.toTempFilePathSync
RenderingContext
WebGLRenderingContext.wxBindCanvasTexture
帧率
wx.setPreferredFramesPerSecond
cancelAnimationFrame
requestAnimationFrame
字体
wx.loadFont
wx.getTextLineHeight
图片
wx.createImage
Image
广告
wx.createRewardedVideoAd
wx.createInterstitialAd
wx.createBannerAd
BannerAd
BannerAd.destroy
BannerAd.hide
BannerAd.offError
BannerAd.offLoad
BannerAd.offResize
BannerAd.onError
BannerAd.onLoad
BannerAd.onResize
BannerAd.show
InterstitialAd
InterstitialAd.destroy
InterstitialAd.load
InterstitialAd.offClose
InterstitialAd.offError
InterstitialAd.offLoad
InterstitialAd.onClose
InterstitialAd.onError
InterstitialAd.onLoad
InterstitialAd.show
RewardedVideoAd
RewardedVideoAd.destroy
RewardedVideoAd.load
RewardedVideoAd.offClose
RewardedVideoAd.offError
RewardedVideoAd.offLoad
RewardedVideoAd.onClose
RewardedVideoAd.onError
RewardedVideoAd.onLoad
RewardedVideoAd.show
界面
交互
wx.showToast
wx.showModal
wx.showLoading
wx.showActionSheet
wx.hideToast
wx.hideLoading
键盘
wx.updateKeyboard
wx.showKeyboard
wx.onKeyboardInput
wx.onKeyboardConfirm
wx.onKeyboardComplete
wx.offKeyboardInput
wx.offKeyboardConfirm
wx.offKeyboardComplete
wx.hideKeyboard
菜单
wx.setMenuStyle
wx.getMenuButtonBoundingClientRect
状态栏 wx.setStatusBarStyle
窗口
wx.onWindowResize
wx.offWindowResize
网络
发起请求
wx.request
RequestTask
RequestTask.abort
RequestTask.offHeadersReceived
RequestTask.onHeadersReceived
下载
wx.downloadFile
DownloadTask
DownloadTask.abort
DownloadTask.offHeadersReceived
DownloadTask.offProgressUpdate
DownloadTask.onHeadersReceived
DownloadTask.onProgressUpdate
上传
wx.uploadFile
UploadTask
UploadTask.abort
UploadTask.offHeadersReceived
UploadTask.offProgressUpdate
UploadTask.onHeadersReceived
UploadTask.onProgressUpdate
WebSocket
wx.sendSocketMessage
wx.onSocketOpen
wx.onSocketMessage
wx.onSocketError
wx.onSocketClose
wx.connectSocket
wx.closeSocket
SocketTask
SocketTask.close
SocketTask.onClose
SocketTask.onError
SocketTask.onMessage
SocketTask.onOpen
SocketTask.send
UDP 通信
wx.createUDPSocket
UDPSocket
UDPSocket.bind
UDPSocket.close
UDPSocket.offClose
UDPSocket.offError
UDPSocket.offListening
UDPSocket.offMessage
UDPSocket.onClose
UDPSocket.onError
UDPSocket.onListening
UDPSocket.onMessage
UDPSocket.send
转发
wx.updateShareMenu
wx.showShareMenu
wx.shareAppMessage
wx.setMessageToFriendQuery
wx.onShareMessageToFriend
wx.onShareAppMessage
wx.offShareAppMessage
wx.hideShareMenu
wx.getShareInfo
虚拟支付 wx.requestMidasPayment
数据缓存
wx.setStorageSync
wx.setStorage
wx.removeStorageSync
wx.removeStorage
wx.getStorageSync
wx.getStorageInfoSync
wx.getStorageInfo
wx.getStorage
wx.clearStorageSync
wx.clearStorage
媒体
音频
wx.setInnerAudioOption
wx.getAvailableAudioSources
wx.createInnerAudioContext
InnerAudioContext
InnerAudioContext.destroy
InnerAudioContext.offCanplay
InnerAudioContext.offEnded
InnerAudioContext.offError
InnerAudioContext.offPause
InnerAudioContext.offPlay
InnerAudioContext.offSeeked
InnerAudioContext.offSeeking
InnerAudioContext.offStop
InnerAudioContext.offTimeUpdate
InnerAudioContext.offWaiting
InnerAudioContext.onCanplay
InnerAudioContext.onEnded
InnerAudioContext.onError
InnerAudioContext.onPause
InnerAudioContext.onPlay
InnerAudioContext.onSeeked
InnerAudioContext.onSeeking
InnerAudioContext.onStop
InnerAudioContext.onTimeUpdate
InnerAudioContext.onWaiting
InnerAudioContext.pause
InnerAudioContext.play
InnerAudioContext.seek
InnerAudioContext.stop
图片
wx.saveImageToPhotosAlbum
wx.previewImage
wx.chooseImage
录音
wx.getRecorderManager
RecorderManager
RecorderManager.onError
RecorderManager.onFrameRecorded
RecorderManager.onInterruptionBegin
RecorderManager.onInterruptionEnd
RecorderManager.onPause
RecorderManager.onResume
RecorderManager.onStart
RecorderManager.onStop
RecorderManager.pause
RecorderManager.resume
RecorderManager.start
RecorderManager.stop
视频
wx.createVideo
Video
Video.destroy
Video.exitFullScreen
Video.offEnded
Video.offError
Video.offPause
Video.offPlay
Video.offTimeUpdate
Video.offWaiting
Video.onEnded
Video.onError
Video.onPause
Video.onPlay
Video.onTimeUpdate
Video.onWaiting
Video.pause
Video.play
Video.requestFullScreen
Video.seek
Video.stop
相机
wx.createCamera
Camera
Camera.closeFrameChange
Camera.destroy
Camera.listenFrameChange
Camera.onAuthCancel
Camera.onCameraFrame
Camera.onStop
Camera.startRecord
Camera.stopRecord
Camera.takePhoto
实时语音
wx.updateVoIPChatMuteConfig
wx.onVoIPChatSpeakersChanged
wx.onVoIPChatMembersChanged
wx.onVoIPChatInterrupted
wx.offVoIPChatSpeakersChanged
wx.offVoIPChatMembersChanged
wx.offVoIPChatInterrupted
wx.joinVoIPChat
wx.exitVoIPChat
位置 wx.getLocation
文件
wx.getFileSystemManager
FileSystemManager
FileSystemManager.access
FileSystemManager.accessSync
FileSystemManager.appendFile
FileSystemManager.appendFileSync
FileSystemManager.copyFile
FileSystemManager.copyFileSync
FileSystemManager.getFileInfo
FileSystemManager.getSavedFileList
FileSystemManager.mkdir
FileSystemManager.mkdirSync
FileSystemManager.readdir
FileSystemManager.readdirSync
FileSystemManager.readFile
FileSystemManager.readFileSync
FileSystemManager.removeSavedFile
FileSystemManager.rename
FileSystemManager.renameSync
FileSystemManager.rmdir
FileSystemManager.rmdirSync
FileSystemManager.saveFile
FileSystemManager.saveFileSync
FileSystemManager.stat
FileSystemManager.statSync
FileSystemManager.unlink
FileSystemManager.unlinkSync
FileSystemManager.unzip
FileSystemManager.writeFile
FileSystemManager.writeFileSync
Stats
Stats.isDirectory
Stats.isFile
开放接口
小程序跳转 wx.navigateToMiniProgram
用户信息
wx.getUserInfo
wx.getUserGameLabel
wx.createUserInfoButton
UserInfo
UserInfoButton
UserInfoButton.destroy
UserInfoButton.hide
UserInfoButton.offTap
UserInfoButton.onTap
UserInfoButton.show
登录
wx.login
wx.checkSession
授权 wx.authorize
开放数据
wx.shareMessageToFriend
wx.setUserCloudStorage
wx.removeUserCloudStorage
wx.onInteractiveStorageModified
wx.modifyFriendInteractiveStorage
wx.getUserInteractiveStorage
wx.getUserCloudStorage
wx.getSharedCanvas
wx.getPotentialFriendList
wx.getGroupCloudStorage
wx.getFriendCloudStorage
FriendInfo
KVData
UserGameData
OpenDataContext-wx.getUserInfo
开放数据域
wx.onMessage
wx.getOpenDataContext
OpenDataContext
OpenDataContext.postMessage
防沉迷 wx.checkIsUserAdvisedToRest
意见反馈
wx.createFeedbackButton
FeedbackButton
FeedbackButton.destroy
FeedbackButton.hide
FeedbackButton.offTap
FeedbackButton.onTap
FeedbackButton.show
设置
wx.openSetting
wx.getSetting
wx.createOpenSettingButton
AuthSetting
OpenSettingButton
OpenSettingButton.destroy
OpenSettingButton.hide
OpenSettingButton.offTap
OpenSettingButton.onTap
OpenSettingButton.show
游戏圈
wx.createGameClubButton
GameClubButton
GameClubButton.destroy
GameClubButton.hide
GameClubButton.offTap
GameClubButton.onTap
GameClubButton.show
客服消息
wx.openCustomerServiceConversation
微信运动 wx.getWeRunData
卡券
wx.openCard
wx.addCard
数据上报 wx.reportMonitor
订阅消息
wx.requestSubscribeSystemMessage
wx.requestSubscribeMessage
设备
iBeacon
wx.stopBeaconDiscovery
wx.startBeaconDiscovery
wx.onBeaconUpdate
wx.onBeaconServiceChange
wx.offBeaconUpdate
wx.offBeaconServiceChange
wx.getBeacons
IBeaconInfo
低功耗蓝牙
wx.writeBLECharacteristicValue
wx.readBLECharacteristicValue
wx.onBLEConnectionStateChange
wx.onBLECharacteristicValueChange
wx.notifyBLECharacteristicValueChange
wx.getBLEDeviceServices
wx.getBLEDeviceCharacteristics
wx.createBLEConnection
wx.closeBLEConnection
蓝牙
wx.stopBluetoothDevicesDiscovery
wx.startBluetoothDevicesDiscovery
wx.openBluetoothAdapter
wx.onBluetoothDeviceFound
wx.onBluetoothAdapterStateChange
wx.getConnectedBluetoothDevices
wx.getBluetoothDevices
wx.getBluetoothAdapterState
wx.closeBluetoothAdapter
电量
wx.getBatteryInfoSync
wx.getBatteryInfo
网络
wx.onNetworkStatusChange
wx.offNetworkStatusChange
wx.getNetworkType
屏幕
wx.setScreenBrightness
wx.setKeepScreenOn
wx.onUserCaptureScreen
wx.getScreenBrightness
加速计
wx.stopAccelerometer
wx.startAccelerometer
wx.onAccelerometerChange
wx.offAccelerometerChange
罗盘
wx.stopCompass
wx.startCompass
wx.onCompassChange
wx.offCompassChange
设备方向
wx.stopDeviceMotionListening
wx.startDeviceMotionListening
wx.onDeviceMotionChange
wx.offDeviceMotionChange
转屏
wx.onDeviceOrientationChange
wx.offDeviceOrientationChange
陀螺仪
wx.stopGyroscope
wx.startGyroscope
wx.onGyroscopeChange
wx.offGyroscopeChange
性能
wx.onMemoryWarning
wx.offMemoryWarning
振动
wx.vibrateShort
wx.vibrateLong
Worker
wx.createWorker
Worker
Worker.onMessage
Worker.postMessage
Worker.terminate
推荐组件
wx.createGamePortal
wx.createGameIcon
wx.createGameBanner
GameBanner
GameBanner.destroy
GameBanner.hide
GameBanner.offError
GameBanner.offLoad
GameBanner.offResize
GameBanner.onError
GameBanner.onLoad
GameBanner.onResize
GameBanner.show
GameIcon
GameIcon.destroy
GameIcon.hide
GameIcon.load
GameIcon.offError
GameIcon.offLoad
GameIcon.offResize
GameIcon.onError
GameIcon.onLoad
GameIcon.onResize
GameIcon.show
GamePortal
GamePortal.destroy
GamePortal.load
GamePortal.offClose
GamePortal.offError
GamePortal.offLoad
GamePortal.onClose
GamePortal.onError
GamePortal.onLoad
GamePortal.show
游戏对局回放
wx.getGameRecorder
wx.createGameRecorderShareButton
GameRecorder
GameRecorder.abort
GameRecorder.isFrameSupported
GameRecorder.isSoundSupported
GameRecorder.off
GameRecorder.on
GameRecorder.pause
GameRecorder.resume
GameRecorder.start
GameRecorder.stop
GameRecorderShareButton
GameRecorderShareButton.hide
GameRecorderShareButton.offTap
GameRecorderShareButton.onTap
GameRecorderShareButton.show
第三方平台
wx.getExtConfigSync
wx.getExtConfig
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度