介绍
小程序介绍
小游戏介绍
设计
小程序设计
小游戏设计
小程序开发
小程序开发
小游戏开发
运营
数据
小程序数据
小游戏数据
社区
中文
/
EN
微信小程序开发文档
简易教程
框架
组件
API
工具
小程序·云开发
开发指南
中文
/
EN
开发文档首页
基础
wx.canIUse
系统
系统信息
wx.getSystemInfoSync
wx.getSystemInfo
更新
wx.getUpdateManager
UpdateManager
.applyUpdate
.onCheckForUpdate
.onUpdateFailed
.onUpdateReady
小程序
生命周期
wx.getLaunchOptionsSync
应用级事件
wx.onPageNotFound
wx.onError
wx.onAppShow
wx.onAppHide
wx.offPageNotFound
wx.offError
wx.offAppShow
wx.offAppHide
定时器
clearInterval
clearTimeout
setInterval
setTimeout
调试
wx.setEnableDebug
wx.getLogManager
console
.debug
.error
.group
.groupEnd
.info
.log
.warn
LogManager
.debug
.info
.log
.warn
路由
wx.switchTab
wx.reLaunch
wx.redirectTo
wx.navigateTo
wx.navigateBack
界面
交互
wx.showToast
wx.showModal
wx.showLoading
wx.showActionSheet
wx.hideToast
wx.hideLoading
导航栏
wx.showNavigationBarLoading
wx.setNavigationBarTitle
wx.setNavigationBarColor
wx.hideNavigationBarLoading
背景
wx.setBackgroundTextStyle
wx.setBackgroundColor
Tab Bar
wx.showTabBarRedDot
wx.showTabBar
wx.setTabBarStyle
wx.setTabBarItem
wx.setTabBarBadge
wx.removeTabBarBadge
wx.hideTabBarRedDot
wx.hideTabBar
字体
wx.loadFontFace
下拉刷新
wx.stopPullDownRefresh
wx.startPullDownRefresh
滚动
wx.pageScrollTo
动画
wx.createAnimation
Animation
.backgroundColor
.bottom
.export
.height
.left
.matrix
.matrix3d
.opacity
.right
.rotate
.rotate3d
.rotateX
.rotateY
.rotateZ
.scale
.scale3d
.scaleX
.scaleY
.scaleZ
.skew
.skewX
.skewY
.step
.top
.translate
.translate3d
.translateX
.translateY
.translateZ
.width
置顶
wx.setTopBarText
自定义组件
wx.nextTick
菜单
wx.getMenuButtonBoundingClientRect
窗口
wx.onWindowResize
wx.offWindowResize
键盘
wx.onKeyboardHeightChange
网络
发起请求
wx.request
RequestTask
.abort
.offHeadersReceived
.onHeadersReceived
下载
wx.downloadFile
DownloadTask
.abort
.offHeadersReceived
.offProgressUpdate
.onHeadersReceived
.onProgressUpdate
上传
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
mDNS
wx.stopLocalServiceDiscovery
wx.startLocalServiceDiscovery
wx.onLocalServiceResolveFail
wx.onLocalServiceLost
wx.onLocalServiceFound
wx.onLocalServiceDiscoveryStop
wx.offLocalServiceResolveFail
wx.offLocalServiceLost
wx.offLocalServiceFound
wx.offLocalServiceDiscoveryStop
数据缓存
wx.setStorageSync
wx.setStorage
wx.removeStorageSync
wx.removeStorage
wx.getStorageSync
wx.getStorageInfoSync
wx.getStorageInfo
wx.getStorage
wx.clearStorageSync
wx.clearStorage
媒体
地图
wx.createMapContext
MapContext
.getCenterLocation
.getRegion
.getScale
.includePoints
.moveToLocation
.translateMarker
图片
wx.saveImageToPhotosAlbum
wx.previewImage
wx.getImageInfo
wx.compressImage
wx.chooseMessageFile
wx.chooseImage
视频
wx.saveVideoToPhotosAlbum
wx.createVideoContext
wx.chooseVideo
VideoContext
.exitFullScreen
.hideStatusBar
.pause
.play
.playbackRate
.requestFullScreen
.seek
.sendDanmu
.showStatusBar
.stop
音频
wx.stopVoice
wx.setInnerAudioOption
wx.playVoice
wx.pauseVoice
wx.getAvailableAudioSources
wx.createInnerAudioContext
wx.createAudioContext
AudioContext
.pause
.play
.seek
.setSrc
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.stopBackgroundAudio
wx.seekBackgroundAudio
wx.playBackgroundAudio
wx.pauseBackgroundAudio
wx.onBackgroundAudioStop
wx.onBackgroundAudioPlay
wx.onBackgroundAudioPause
wx.getBackgroundAudioPlayerState
wx.getBackgroundAudioManager
BackgroundAudioManager
.onCanplay
.onEnded
.onError
.onNext
.onPause
.onPlay
.onPrev
.onSeeked
.onSeeking
.onStop
.onTimeUpdate
.onWaiting
.pause
.play
.seek
.stop
实时音视频
wx.createLivePusherContext
wx.createLivePlayerContext
LivePlayerContext
.exitFullScreen
.mute
.pause
.play
.requestFullScreen
.resume
.stop
LivePusherContext
.pause
.pauseBGM
.playBGM
.resume
.resumeBGM
.setBGMVolume
.snapshot
.start
.stop
.stopBGM
.switchCamera
.toggleTorch
录音
wx.stopRecord
wx.startRecord
wx.getRecorderManager
RecorderManager
.onError
.onFrameRecorded
.onInterruptionBegin
.onInterruptionEnd
.onPause
.onResume
.onStart
.onStop
.pause
.resume
.start
.stop
相机
wx.createCameraContext
CameraContext
.startRecord
.stopRecord
.takePhoto
位置
wx.openLocation
wx.getLocation
wx.chooseLocation
转发
wx.updateShareMenu
wx.showShareMenu
wx.hideShareMenu
wx.getShareInfo
画布
wx.createCanvasContext
wx.canvasToTempFilePath
wx.canvasPutImageData
wx.canvasGetImageData
CanvasContext
.arc
.arcTo
.beginPath
.bezierCurveTo
.clearRect
.clip
.closePath
.createCircularGradient
.createLinearGradient
.createPattern
.draw
.drawImage
.fill
.fillRect
.fillText
.lineTo
.measureText
.moveTo
.quadraticCurveTo
.rect
.restore
.rotate
.save
.scale
.setFillStyle
.setFontSize
.setGlobalAlpha
.setLineCap
.setLineDash
.setLineJoin
.setLineWidth
.setMiterLimit
.setShadow
.setStrokeStyle
.setTextAlign
.setTextBaseline
.setTransform
.stroke
.strokeRect
.strokeText
.transform
.translate
CanvasGradient
.addColorStop
Color
文件
wx.saveFile
wx.removeSavedFile
wx.openDocument
wx.getSavedFileList
wx.getSavedFileInfo
wx.getFileSystemManager
wx.getFileInfo
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
Stats
.isDirectory
.isFile
开放接口
登录
wx.login
wx.checkSession
code2Session
小程序跳转
wx.navigateToMiniProgram
wx.navigateBackMiniProgram
帐号信息
wx.getAccountInfoSync
用户信息
wx.getUserInfo
getPaidUnionId
UserInfo
接口调用凭证
getAccessToken
数据上报
wx.reportMonitor
数据分析
wx.reportAnalytics
访问留存
getAnalysisDailyRetain
getAnalysisMonthlyRetain
getAnalysisWeeklyRetain
getAnalysisDailySummary
访问趋势
getAnalysisDailyVisitTrend
getAnalysisMonthlyVisitTrend
getAnalysisWeeklyVisitTrend
getAnalysisUserPortrait
getAnalysisVisitDistribution
getAnalysisVisitPage
支付
wx.requestPayment
授权
wx.authorize
设置
wx.openSetting
wx.getSetting
AuthSetting
客服消息
customerTyping
getTempMedia
sendCustomerMessage
uploadTempMedia
模板消息
addTemplate
deleteTemplate
getTemplateLibraryById
getTemplateLibraryList
getTemplateList
sendTemplateMessage
统一服务消息
sendUniformMessage
动态消息
createActivityId
setUpdatableMsg
插件管理
applyPlugin
getPluginDevApplyList
getPluginList
setDevPluginApplyStatus
unbindPlugin
收货地址
wx.chooseAddress
卡券
wx.openCard
wx.addCard
发票
wx.chooseInvoiceTitle
wx.chooseInvoice
附近的小程序
addNearbyPoi
deleteNearbyPoi
getNearbyPoiList
setNearbyPoiShowStatus
二维码
createWXAQRCode
getWXACode
getWXACodeUnlimit
内容安全
imgSecCheck
msgSecCheck
生物认证
wx.startSoterAuthentication
wx.checkIsSupportSoterAuthentication
wx.checkIsSoterEnrolledInDevice
微信运动
wx.getWeRunData
物流助手
小程序使用
addOrder
cancelOrder
getAllDelivery
getOrder
getPath
getPrinter
getQuota
onPathUpdate
updatePrinter
服务提供方使用
getContact
onAddOrder
onCancelOrder
onCheckBusiness
onGetQuota
previewTemplate
updateBusiness
updatePath
设备
iBeacon
wx.stopBeaconDiscovery
wx.startBeaconDiscovery
wx.onBeaconUpdate
wx.onBeaconServiceChange
wx.getBeacons
IBeaconInfo
Wi-Fi
wx.stopWifi
wx.startWifi
wx.setWifiList
wx.onWifiConnected
wx.onGetWifiList
wx.getWifiList
wx.getConnectedWifi
wx.connectWifi
WifiInfo
联系人
wx.addPhoneContact
低功耗蓝牙
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.setClipboardData
wx.getClipboardData
NFC
wx.stopHCE
wx.startHCE
wx.sendHCEMessage
wx.onHCEMessage
wx.getHCEState
网络
wx.onNetworkStatusChange
wx.getNetworkType
屏幕
wx.setScreenBrightness
wx.setKeepScreenOn
wx.onUserCaptureScreen
wx.getScreenBrightness
电话
wx.makePhoneCall
加速计
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.scanCode
振动
wx.vibrateShort
wx.vibrateLong
Worker
wx.createWorker
Worker
.onMessage
.postMessage
.terminate
第三方平台
wx.getExtConfigSync
wx.getExtConfig
WXML
wx.createSelectorQuery
wx.createIntersectionObserver
IntersectionObserver
.disconnect
.observe
.relativeTo
.relativeToViewport
NodesRef
.boundingClientRect
.context
.fields
.scrollOffset
SelectorQuery
.exec
.in
.select
.selectAll
.selectViewport
Animation
Animation.scaleX(number scale)
缩放 X 轴
参数
number scale
X 轴的缩放倍数
返回值
Animation
个结果 "
"
没有找到相关内容 "
"
关于腾讯
文档中心
辟谣中心
客服中心
Copyright © 2012-
Tencent. All Rights Reserved.