介绍
小程序介绍
小游戏介绍
设计
小程序设计
小游戏设计
小游戏开发
小程序开发
小游戏开发
运营
数据
小程序数据
小游戏数据
社区
中文
/
EN
微信小游戏开发文档
指南
框架
API
服务端
工具
云开发
中文
/
EN
开发文档首页
基础
系统
系统信息
wx.getSystemInfoSync
wx.getSystemInfo
更新
wx.getUpdateManager
UpdateManager
.applyUpdate
.onCheckForUpdate
.onUpdateFailed
.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.getPerformance
Performance
.now
分包加载
wx.loadSubpackage
LoadSubpackageTask
.onProgressUpdate
调试
wx.setEnableDebug
wx.getLogManager
console
.warn
.log
.info
.groupEnd
.group
.error
.debug
LogManager
.debug
.info
.log
.warn
定时器
setTimeout
setInterval
clearInterval
clearTimeout
渲染
画布
wx.createCanvas
Canvas
.toTempFilePathSync
.toTempFilePath
.toDataURL
.getContext
RenderingContext
WebGLRenderingContext.wxBindCanvasTexture
帧率
wx.setPreferredFramesPerSecond
cancelAnimationFrame
requestAnimationFrame
字体
wx.loadFont
wx.getTextLineHeight
图片
wx.createImage
Image
广告
wx.createRewardedVideoAd
wx.createBannerAd
BannerAd
.show
.onResize
.onLoad
.onError
.offResize
.offLoad
.offError
.hide
.destroy
RewardedVideoAd
.load
.offClose
.offError
.offLoad
.onClose
.onError
.onLoad
.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
.abort
.offHeadersReceived
.onHeadersReceived
下载
wx.downloadFile
DownloadTask
.onProgressUpdate
.onHeadersReceived
.offProgressUpdate
.offHeadersReceived
.abort
上传
wx.uploadFile
UploadTask
.abort
.offHeadersReceived
.offProgressUpdate
.onHeadersReceived
.onProgressUpdate
WebSocket
wx.sendSocketMessage
wx.onSocketOpen
wx.onSocketMessage
wx.onSocketError
wx.onSocketClose
wx.connectSocket
wx.closeSocket
SocketTask
.close
.onClose
.onError
.onMessage
.onOpen
.send
UDP 通信
wx.createUDPSocket
UDPSocket
.bind
.close
.offClose
.offError
.offListening
.offMessage
.onClose
.onError
.onListening
.onMessage
.send
转发
wx.updateShareMenu
wx.showShareMenu
wx.shareAppMessage
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
.destroy
.offCanplay
.offEnded
.offError
.offPause
.offPlay
.offSeeked
.offSeeking
.offStop
.offTimeUpdate
.offWaiting
.onCanplay
.onEnded
.onError
.onPause
.onPlay
.onSeeked
.onSeeking
.onStop
.onTimeUpdate
.onWaiting
.pause
.play
.seek
.stop
图片
wx.saveImageToPhotosAlbum
wx.previewImage
wx.chooseImage
录音
wx.getRecorderManager
RecorderManager
.onError
.onFrameRecorded
.onInterruptionBegin
.onInterruptionEnd
.onPause
.onResume
.onStart
.onStop
.pause
.resume
.start
.stop
视频
wx.createVideo
Video
.onError
.destroy
.exitFullScreen
.offEnded
.offError
.offPause
.offPlay
.offTimeUpdate
.offWaiting
.onEnded
.onPause
.onPlay
.onTimeUpdate
.onWaiting
.pause
.play
.requestFullScreen
.seek
.stop
实时语音
wx.updateVoIPChatMuteConfig
wx.onVoIPChatSpeakersChanged
wx.onVoIPChatMembersChanged
wx.onVoIPChatInterrupted
wx.joinVoIPChat
wx.exitVoIPChat
位置
wx.getLocation
文件
wx.getFileSystemManager
Stats
.isDirectory
.isFile
FileSystemManager
.access
.accessSync
.appendFile
.appendFileSync
.copyFile
.copyFileSync
.getFileInfo
.getSavedFileList
.mkdir
.mkdirSync
.readdir
.readdirSync
.readFile
.readFileSync
.removeSavedFile
.rename
.renameSync
.rmdir
.rmdirSync
.saveFile
.saveFileSync
.stat
.statSync
.unlink
.unlinkSync
.unzip
.writeFile
.writeFileSync
开放接口
小程序跳转
wx.navigateToMiniProgram
用户信息
wx.getUserInfo
wx.createUserInfoButton
UserInfoButton
.destroy
.hide
.offTap
.onTap
.show
UserInfo
登录
wx.login
wx.checkSession
授权
wx.authorize
开放数据
wx.setUserCloudStorage
wx.removeUserCloudStorage
wx.getUserCloudStorage
wx.getSharedCanvas
wx.getGroupCloudStorage
wx.getFriendCloudStorage
UserGameData
KVData
OpenDataContext-wx.getUserInfo
开放数据域
wx.onMessage
wx.getOpenDataContext
OpenDataContext
.postMessage
防沉迷
wx.checkIsUserAdvisedToRest
意见反馈
wx.createFeedbackButton
FeedbackButton
.onTap
.offTap
.hide
.destroy
.show
设置
wx.openSetting
wx.getSetting
wx.createOpenSettingButton
AuthSetting
OpenSettingButton
.destroy
.hide
.offTap
.onTap
.show
游戏圈
wx.createGameClubButton
GameClubButton
.destroy
.hide
.offTap
.onTap
.show
客服消息
wx.openCustomerServiceConversation
微信运动
wx.getWeRunData
卡券
wx.openCard
wx.addCard
设备
电量
wx.getBatteryInfoSync
wx.getBatteryInfo
剪贴板
wx.setClipboardData
wx.getClipboardData
网络
wx.onNetworkStatusChange
wx.getNetworkType
屏幕
wx.setScreenBrightness
wx.setKeepScreenOn
wx.getScreenBrightness
转屏
wx.onDeviceOrientationChange
wx.offDeviceOrientationChange
加速计
wx.stopAccelerometer
wx.startAccelerometer
wx.onAccelerometerChange
罗盘
wx.stopCompass
wx.startCompass
wx.onCompassChange
设备方向
wx.stopDeviceMotionListening
wx.startDeviceMotionListening
wx.onDeviceMotionChange
陀螺仪
wx.stopGyroscope
wx.startGyroscope
wx.onGyroscopeChange
性能
wx.onMemoryWarning
振动
wx.vibrateShort
wx.vibrateLong
Worker
wx.createWorker
Worker
.onMessage
.postMessage
.terminate
Promise Video.exitFullScreen()
视频退出全屏
返回值
Promise
视频退出全屏完成的 Promise
个结果 "
"
没有找到相关内容 "
"
关于腾讯
文档中心
辟谣中心
客服中心
Copyright © 2012-
Tencent. All Rights Reserved.