Introduction
jssdk桥接对接方式
FAQ
API 清单
异常编码说明
基础 API
基础
canIUse
系统
getSystemInfoSync
getSystemInfo
更新
getUpdateManager
生命周期
getLaunchOptionsSync
应用级事件
onPageNotFound
onError
onAppShow
onAppHide
offPageNotFound
offError
offAppShow
offAppHide
路由
switchTab
reLaunch
redirectTo
navigateTo
navigateBack
跳转
navigateToMiniProgram
navigateBackMiniProgram
exitMiniProgram
交互
showToast
showModal
showLoading
showActionSheet
hideToast
hideLoading
导航栏
showNavigationBarLoading
setNavigationBarTitle
setNavigationBarColor
hideNavigationBarLoading
hideHomeButton
Tab Bar
showTabBarRedDot
showTabBar
setTabBarStyle
setTabBarItem
setTabBarBadge
removeTabBarBadge
hideTabBarRedDot
hideTabBar
下拉刷新
stopPullDownRefresh
菜单
getMenuButtonBoundingClientRect
发起请求
request
下载
downloadFile
上传
uploadFile
数据缓存
setStorageSync
setStorage
removeStorageSync
removeStorage
getStorageSync
getStorageInfoSync
getStorageInfo
clearStorageSync
clearStorage
图片
saveImageToPhotosAlbum
previewImage
getImageInfo
chooseImage
视频
chooseVideo
音频
stopVoice
playVoice
pauseVoice
背景音频
getBackgroundAudioPlayerState
getBackgroundAudioManager
stop
seek
play
pause
onStop
onPlay
onPause
录音
startRecord
stopRecord
相机
createCameraContext
CameraContext.stopRecord
CameraContext.takePhoto
位置
getLocation
stopLocationUpdate
startLocationUpdateBackground
startLocationUpdate
onLocationChange
offLocationChange
文件
saveFile
openDocument
getSavedFileList
getSavedFileInfo
getFileSystemManager
getFileInfo
FileSystemManager.removeSavedFile
登录
appLogin
getPassport
授权
authorize
设置
openSetting
getSetting
剪贴板
setClipboardData
getClipboardData
网络
onNetworkStatusChange
offNetworkStatusChange
getNetworkType
屏幕
setScreenBrightness
setKeepScreenOn
onUserCaptureScreen
getScreenBrightness
键盘
hideKeyboard
电话
makePhoneCall
扫码
scanCode
振动
vibrateShort
vibrateLong
开放能力 API
登录
订单流程
卡券流程
获取用户信息
消息推送
分享端能力使用
小程序支付
车企小程序留资接口
生命周期
● 获取小程序启动时的参数
getLaunchOptionsSync
分类:生命周期
是否支持H5:不支持
参数
返回值
Object
属性
类型
说明
path
string
启动小程序的路径 (代码包路径)
scene
number
启动小程序的场景值
query
Object
启动小程序的 query 参数
调用示例
原生
wx.getLaunchOptionsSync()
results matching "
"
No results matching "
"