{"id":15308026,"url":"https://github.com/wscats/uni-app","last_synced_at":"2025-04-14T23:13:55.661Z","repository":{"id":72736168,"uuid":"324109712","full_name":"Wscats/uni-app","owner":"Wscats","description":"Support commonly used code snippets in Hbuilder/HbuilderX.","archived":false,"fork":false,"pushed_at":"2020-12-25T11:14:26.000Z","size":76,"stargazers_count":45,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T23:13:45.184Z","etag":null,"topics":["hbuilder","hbuilderx","mui","uni-app"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=Wscats.uni-app","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wscats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-24T08:46:21.000Z","updated_at":"2025-02-23T08:24:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"57109515-7ed9-44c7-a36e-7775852d12ea","html_url":"https://github.com/Wscats/uni-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Funi-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Funi-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Funi-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Funi-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wscats","download_url":"https://codeload.github.com/Wscats/uni-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hbuilder","hbuilderx","mui","uni-app"],"created_at":"2024-10-01T08:13:34.368Z","updated_at":"2025-04-14T23:13:55.618Z","avatar_url":"https://github.com/Wscats.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript\n\n\n|API|Prefix|Description|\n|-|-|-|\n|`APP-PLUS`|platform-app,platform-app-plus,app,app-plus|APP 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`APP-NVUE`|platform-app-nvue,platform-app-plus-nvue,app-nvue,app-plus-nvue|APP-NVUE 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`H5`|platform-h5,h5|H5 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-WEIXIN`|platform-mp-weixin,platform-weixin,platform-mp-wechat,platform-wechat,mp-weixin,weixin,mp-wechat,wechat|微信小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-ALIPAY`|platform-mp-alipay,platform-alipay,platform-mp-ali,platform-ali,mp-alipay,alipay,mp-ali,ali|支付宝小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-BAIDU`|platform-mp-baidu,platform-baidu,mp-baidu,baidu|百度小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-TOUTIAO`|platform-mp-toutiao,platform-toutiao,platform-mp-bytedance,platform-bytedance,mp-toutiao,toutiao,mp-bytedance,bytedance|字节跳动小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-QQ`|platform-mp-qq,platform-qq,mp-qq,qq|QQ 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-360`|platform-mp-360,platform-360,mp-360,360|360 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP`|platform-mp,mp|小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW`|platform-quickapp,platform-quickapp-webview,quickapp,quickapp-webview|快应用通用对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-UNION`|platform-quickapp-union,platform-quickapp-webview-union,quickapp-union,quickapp-webview-union|快应用联盟对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-HUAWEI`|platform-quickapp-huawei,platform-quickapp-webview-huawei,quickapp-huawei,quickapp-webview-huawei|快应用华为对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`/* #ifdef $1 */,$2,/* #endif */`|#ifdef,ifdef|条件编译，处理某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`/* #ifndef $1 */,$2,/* #endif */`|#ifndef,ifndef|条件编译，排除某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`\u003c!-- #endif --\u003e`|#endif,endif|结束条件编译。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`process.env.NODE_ENV === 'development'`|process.env.NODE_ENV === 'development'|判断是否为生产环境。更多信息查看 https://cli.vuejs.org/zh/guide/mode-and-env.html。|\n|`process.env.NODE_ENV !== 'development'`|process.env.NODE_ENV !== 'development'|判断是否不为生产环境。更多信息查看 https://cli.vuejs.org/zh/guide/mode-and-env.html。|\n|`process.env.NODE_ENV === 'production'`|process.env.NODE_ENV === 'production'|判断是否为生产环境。更多信息查看 https://cli.vuejs.org/zh/guide/mode-and-env.html。|\n|`process.env.NODE_ENV !== 'production'`|process.env.NODE_ENV !== 'production'|判断是否不为生产环境。更多信息查看 https://cli.vuejs.org/zh/guide/mode-and-env.html。|\n|`console.log(\"${1:object}\", ${1:object})$0`|clg,clog,console.log|打印 log 日志。更多信息查看 https://uniapp.dcloud.io/api/log?id=log。|\n|`console.info(\"${1:object}\", ${1:object})$0`|cin,console.info|打印 info 日志。更多信息查看 https://uniapp.dcloud.io/api/log?id=info。|\n|`console.warn(\"${1:object}\", ${1:object})$0`|cwa,console.warn|打印 warn 日志。更多信息查看 https://uniapp.dcloud.io/api/log?id=warn。|\n|`console.error(\"${1:object}\", ${1:object})$0`|cer,console.error|打印 error 日志。更多信息查看 https://uniapp.dcloud.io/api/log?id=error。|\n|`setTimeout(() =\u003e {$1}, ${2:1000})$0`|sto,setTimeout|设置一次性定时器。更多信息查看 https://uniapp.dcloud.io/api/timer?id=settimeout。|\n|`clearTimeout($1)$0`|csto,clearTimeout|清理一次性定时器。更多信息查看 https://uniapp.dcloud.io/api/timer?id=cleartimeout。|\n|`setInterval(() =\u003e {$1}, ${2:1000})$0`|sti,setInterval|设置周期性定时器。更多信息查看 https://uniapp.dcloud.io/api/timer?id=setinterval。|\n|`clearInterval($1)$0`|csti,clearInterval|清理周期性定时器。更多信息查看 https://uniapp.dcloud.io/api/timer?id=clearinterval。|\n|`uni.base64ToArrayBuffer(${1:base64})$0`|uni.base64ToArrayBuffer|将 base64 字符串转成 ArrayBuffer。更多信息查看 https://uniapp.dcloud.io/api/base64ToArrayBuffer。|\n|`uni.arrayBufferToBase64(${1:arrayBuffer})$0`|uni.arrayBufferToBase64|将 ArrayBuffer 字符串转成 base64。更多信息查看 https://uniapp.dcloud.io/api/arrayBufferToBase64。|\n|`onLaunch() {$1}$0`|onLaunch|应用生命周期，只能在 App.vue 中监听。uni-app 初始化完成时触发，全局只触发一次。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onShow() {$1}$0`|onShow|应用生命周期，只能在 App.vue 中监听。uni-app 启动时或从后台进入前台时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onHide() {$1}$0`|onHide|应用生命周期，只能在 App.vue 中监听。uni-app 从前台进入后台时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onError() {$1}$0`|onError|应用生命周期，只能在 App.vue 中监听。uni-app 报错时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onThemeChange() {$1}$0`|onThemeChange|应用生命周期，只能在 App.vue 中监听。系统主题变化时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e5%ba%94%e7%94%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onLoad(options) {$1}$0`|onLoad|页面生命周期。页面加载时触发，参数是上个页面传递的数据，类型是 object。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onShow() {$1}$0`|onShow|页面生命周期。页面在屏幕上显示时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onReady() {$1}$0`|onReady|页面生命周期。页面初次渲染完成时触发，如果渲染速度快，会在页面进入动画完成前触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onHide() {$1}$0`|onHide|页面生命周期。页面在屏幕上隐藏时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onUnload() {$1}$0`|onUnload|页面生命周期。页面卸载时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onResize() {$1}$0`|onResize|页面生命周期。窗口尺寸变化时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onPullDownRefresh() {$1}$0`|onPullDownRefresh|页面生命周期。用户下拉时触发，一般用于下拉刷新。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onReachBottom() {$1}$0`|onReachBottom|页面生命周期。页面滚动到底部时触发，一般用于触底加载数据。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onTabItemTap({ index, pagePath, text }) {$1}$0`|onTabItemTap|页面生命周期。点击 Tab 时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onShareAppMessage() {$1}$0`|onShareAppMessage|页面生命周期。点击右上角分享时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onPageScroll({ scrollTop }) {$1}$0`|onPageScroll|页面生命周期。页面滚动时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onNavigationBarButtonTap({ index }) {$1}$0`|onNavigationBarButtonTap|页面生命周期。原生标题栏按钮被点击时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onBackPress({ from }) {$1}$0`|onBackPress|页面生命周期。页面返回时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onNavigationBarSearchInputChanged() {$1}$0`|onNavigationBarSearchInputChanged|页面生命周期。原生标题栏搜索输入框输入时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onNavigationBarSearchInputConfirmed() {$1}$0`|onNavigationBarSearchInputConfirmed|页面生命周期。原生标题栏搜索输入框确认搜索时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onNavigationBarSearchInputClicked() {$1}$0`|onNavigationBarSearchInputClicked|页面生命周期。原生标题栏点击搜索输入框时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onShareTimeline() {$1}$0`|onShareTimeline|页面生命周期。点击右上角转发到朋友圈时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`onAddToFavorites() {$1}$0`|onAddToFavorites|页面生命周期。点击右上角收藏时触发。更多信息查看 https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f。|\n|`getApp() // 如果要使用 globalData，请考虑使用 vuex 实现同样的效果$0`|getApp|获取当前应用实例，可以进一步获取 globalData。更多信息查看 https://uniapp.dcloud.io/collocation/frame/window?id=getapp。|\n|`getCurrentPages()$0`|getCurrentPages|获取当前页面栈实例，数组形式，第一个元素是首页。更多信息查看 https://uniapp.dcloud.io/collocation/frame/window?id=getcurrentpages。|\n|`uni.$emit(${1:eventName}, ${2:{}})$0`|uni.$emit|触发全局自定义事件。过多的全局自定义事件容易导致代码混乱且难以调试，请控制全局自定义事件数量。更多信息查看 https://uniapp.dcloud.io/collocation/frame/communication?id=emit。|\n|`uni.$on(${1:eventName}, (${2:data}) =\u003e {$3})$0`|uni.$on|监听全局自定义事件。过多的全局自定义事件容易导致代码混乱且难以调试，请控制全局自定义事件数量。更多信息查看 https://uniapp.dcloud.io/collocation/frame/communication?id=on。|\n|`uni.$once(${1:eventName}, (${2:data}) =\u003e {$3})$0`|uni.$once|一次性监听全局自定义事件。过多的全局自定义事件容易导致代码混乱且难以调试，请控制全局自定义事件数量。更多信息查看 https://uniapp.dcloud.io/collocation/frame/communication?id=once。|\n|`uni.$off(${1:eventName}$0)`|uni.$off|移除全局自定义事件监听。过多的全局自定义事件容易导致代码混乱且难以调试，请控制全局自定义事件数量。更多信息查看 https://uniapp.dcloud.io/collocation/frame/communication?id=off。|\n|`uni.request({,\turl: '$1',,\tdata: {$2},,\theader: {,\t\tAccept: 'application/json',,\t\t'Content-Type': 'application/json',,\t\t'X-Requested-With': 'XMLHttpRequest',\t},,\tmethod: ${3:'GET'},,\tsslVerify: ${4:true},,\tsuccess: ({ data, statusCode, header }) =\u003e {$5},,\tfail: (error) =\u003e {$6},})$0`|uni.request|发起网络请求。请考虑使用已经封装好的库，如 uni-ajax 和 luch-request。更多信息查看 https://uniapp.dcloud.io/api/request/request。|\n|`uni.uploadFile({,\turl: '$1',,\tfileType: '${2:image}',,\tfilePath: ${3:tempFilePaths[0]},,\tname: '${4:file}',,\tsuccess: ({ data, statusCode }) =\u003e {$5},,\tfail: (error) =\u003e {$6},})$0`|uni.uploadFile|上传文件。更多信息查看 https://uniapp.dcloud.io/api/request/network-file?id=uploadfile。|\n|`uni.downloadFile({,\turl: '$1',,\tsuccess: ({ tempFilePath, statusCode }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.downloadFile|下载文件。更多信息查看 https://uniapp.dcloud.io/api/request/network-file?id=downloadfile。|\n|`uni.connectSocket({,\turl: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.connectSocket|创建 WebSocket 连接。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=connectsocket。|\n|`uni.onSocketOpen((result) =\u003e {$1})$0`|uni.onSocketOpen|监听 WebSocket 连接打开。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=onsocketopen。|\n|`uni.onSocketError((result) =\u003e {$1})$0`|uni.onSocketError|监听 WebSocket 错误。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=onsocketerror。|\n|`uni.sendSocketMessage({,\tdata: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.sendSocketMessage|通过 WebSocket 发送数据。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=sendsocketmessage。|\n|`uni.onSocketMessage(({ data }) =\u003e {$1})$0`|uni.onSocketMessage|监听 WebSocket 接收消息。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=onsocketmessage。|\n|`uni.closeSocket({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.closeSocket|关闭 WebSocket 连接。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=closesocket。|\n|`uni.onSocketClose((result) =\u003e {$1})$0`|uni.onSocketClose|监听 WebSocket 关闭。更多信息查看 https://uniapp.dcloud.io/api/request/websocket?id=onsocketclose。|\n|`uni.navigateTo({,\turl: '/pages/$1',})$0`|uni.navigateTo|保留当前页面，跳转到某个非 TabBar 页面。更多信息查看 https://uniapp.dcloud.io/api/router?id=navigateto。|\n|`uni.redirectTo({,\turl: '/pages/$1',})$0`|uni.redirectTo|关闭当前页面，跳转到某个非 Tab 页面。更多信息查看 https://uniapp.dcloud.io/api/router?id=redirectto。|\n|`uni.reLaunch({,\turl: '/pages/$1',})$0`|uni.reLaunch|关闭所有页面，打开到某个页面。更多信息查看 https://uniapp.dcloud.io/api/router?id=relaunch。|\n|`uni.switchTab({,\turl: '/pages/$1',})$0`|uni.switchTab|关闭所有非 TabBar 页面，跳转到 TabBar 页面。更多信息查看 https://uniapp.dcloud.io/api/router?id=switchtab。|\n|`uni.navigateBack({,\tdelta: ${1:1},})$0`|uni.navigateBack|关闭当前页面并返回。更多信息查看 https://uniapp.dcloud.io/api/router?id=navigateback。|\n|`uni.setStorage({,\tkey: '${1:key}',,\tdata: ${2:data},,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.setStorage|异步存储本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=setstorage。|\n|`uni.setStorageSync('${1:key}', ${2:data})$0`|uni.setStorageSync|同步存储本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=setstoragesync。|\n|`uni.getStorage({,\tkey: '${1:key}',,\tsuccess: ({ data }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getStorage|异步读取本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=getstorage。|\n|`uni.getStorageSync('${1:key}')$0`|uni.getStorageSync|同步读取本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=getstoragesync。|\n|`uni.getStorageInfo({,\tsuccess: ({ keys, currentSize, limitSize }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getStorageInfo|异步读取存储信息。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=getstorageinfo。|\n|`uni.getStorageInfoSync()$0`|uni.getStorageInfoSync|同步读取存储信息。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=getstorageinfosync。|\n|`uni.removeStorage({,\tkey: '${1:key}',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.removeStorage|异步移除本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=removestorage。|\n|`uni.removeStorageSync('${1:key}')`|uni.removeStorageSync|同步移除本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=removestoragesync。|\n|`uni.clearStorage({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.clearStorage|异步清空本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=clearstorage。|\n|`uni.clearStorageSync()`|uni.clearStorage|同步清理本地数据。更多信息查看 https://uniapp.dcloud.io/api/storage/storage?id=clearstoragesync。|\n|`uni.getLocation({,\ttype: '${1:gcj02}',,\tsuccess: ({ longitude, latitude }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getLocation|获取当前地理位置。如果需要转换坐标到不同坐标系，建议使用已经封装好的库，如 gcoord 和 coordtransform。更多信息查看 https://uniapp.dcloud.io/api/location/location?id=getlocation。|\n|`uni.chooseLocation({,\tsuccess: ({ name, address, longitude, latitude }) =\u003e {$1},,\tfail: (error) =\u003e {$2},});`|uni.chooseLocation|打开地图选择位置。更多信息查看 https://uniapp.dcloud.io/api/location/location?id=chooselocation。|\n|`uni.openLocation({,\tlongitude: ${1:longitude},,\tlatitude: ${2:latitude},,\tname: '${3:name}',,\taddress: '${4:address}',})`|uni.openLocation|使用内置地图查看位置。更多信息查看 https://uniapp.dcloud.io/api/location/open-location。|\n|`uni.createMapContext(${1:mapId}, ${2:this})`|uni.createMapContext|创建地图上下文对象。更多信息查看 https://uniapp.dcloud.io/api/location/map?id=createmapcontext。|\n|`uni.chooseImage({,\tsourceType: ${1:['album', 'camera']},,\tsuccess: ({ tempFilePaths, tempFiles }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.chooseImage|选择相册图片或使用相机拍照。更多信息查看 https://uniapp.dcloud.io/api/media/image?id=chooseimage。|\n|`uni.previewImage({,\turls: ${1:tempFilePaths},,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.previewImage|预览图片。更多信息查看 https://uniapp.dcloud.io/api/media/image?id=unipreviewimageobject。|\n|`uni.getImageInfo({,\tsrc: $1,,\tsuccess: ({ width, height, path, orientation, type }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getImageInfo|获取图片信息。更多信息查看 https://uniapp.dcloud.io/api/media/image?id=getimageinfo。|\n|`uni.saveImageToPhotosAlbum({,\tfilePath: $1,,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.saveImageToPhotosAlbum|保存图片到相册。更多信息查看 https://uniapp.dcloud.io/api/media/image?id=saveimagetophotosalbum。|\n|`uni.compressImage({,\tsrc: $1,,\tquality: ${2:80},,\tsuccess: ({ tempFilePath }) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.compressImage|压缩图片。更多信息查看 https://uniapp.dcloud.io/api/media/image?id=compressimage。|\n|`uni.chooseFile({,\ttype: '${1:all}',,\tsuccess: ({ tempFilePaths, tempFiles }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.chooseFile|选择本地文件。更多信息查看 https://uniapp.dcloud.io/api/media/file?id=choosefile。|\n|`uni.getRecorderManager()$0`|uni.getRecorderManager|获取全局唯一录音管理器。更多信息查看 https://uniapp.dcloud.io/api/media/record-manager?id=getrecordermanager。|\n|`uni.getBackgroundAudioManager()$0`|uni.getBackgroundAudioManager|获取全局唯一背景音频管理器。更多信息查看 https://uniapp.dcloud.io/api/media/background-audio-manager?id=getbackgroundaudiomanager。|\n|`uni.createInnerAudioContext()$0`|uni.createInnerAudioContext|创建音频上下文对象。更多信息查看 https://uniapp.dcloud.io/api/media/audio-context?id=createinneraudiocontext。|\n|`uni.chooseVideo({,\tsourceType: ${1:['album', 'camera']},,\tcamera: '${2:back}',,\tsuccess: ({ tempFilePath }) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.chooseVideo|选择相册视频或使用相机录像。更多信息查看 https://uniapp.dcloud.io/api/media/video?id=choosevideo。|\n|`uni.saveVideoToPhotosAlbum({,\tfilePath: ${1:tempFilePath},,\tsuccess: ({ errMsg }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.saveVideoToPhotosAlbum|保存视频到相册。更多信息查看 https://uniapp.dcloud.io/api/media/video?id=savevideotophotosalbum。|\n|`uni.createVideoContext(${1:videoId}, ${2:this})$0`|uni.createVideoContext|创建视频上下文对象。更多信息查看 https://uniapp.dcloud.io/api/media/video-context?id=createvideocontext.|\n|`uni.createCameraContext()$0`|uni.createCameraContext|创建相机上下文对象。更多信息查看 https://uniapp.dcloud.io/api/media/camera-context?id=createcameracontext。|\n|`uni.createLivePlayerContext(${1:livePlayerId}, ${2:this})$0`|uni.createLivePlayerContext|创建直播拉流上下文对象。更多信息查看 https://uniapp.dcloud.io/api/media/live-player-context?id=createliveplayercontext。|\n|`uni.createLivePusherContext(${1:livePusherId}, ${2:this})$0`|uni.createLivePusherContext|创建直播推流上下文对象。更多信息查看 https://uniapp.dcloud.io/api/media/live-player-context?id=createlivepushercontext。|\n|`uni.getSystemInfo({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getSystemInfo|异步获取系统信息。更多信息查看 https://uniapp.dcloud.io/api/system/info?id=getsysteminfo。|\n|`uni.getSystemInfoSync()$0`|uni.getSystemInfoSync|同步获取系统信息。更多信息查看 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync。|\n|`uni.canIUse('$1')$0`|uni.canIUse|判断 API、回调、参数、组件等是否在当前版本可用。更多信息查看 https://uniapp.dcloud.io/api/system/info?id=caniuse。|\n|`uni.onMemoryWarning(() =\u003e {$1})$0`|uni.onMemoryWarning|内存不足告警时触发。更多信息查看 https://uniapp.dcloud.io/api/system/memory。|\n|`uni.getNetworkType({,\tsuccess: ({ networkType }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getNetworkType|获取网络类型。更多信息查看 https://uniapp.dcloud.io/api/system/network?id=getnetworktype。|\n|`uni.onNetworkStatusChange(({ isConnected, networkType }) =\u003e {$1})$0`|uni.onNetworkStatusChange|网络状态变化时触发。更多信息查看 https://uniapp.dcloud.io/api/system/network?id=onnetworkstatuschange。|\n|`uni.onAccelerometerChange(({ x, y, z }) =\u003e {$1})$0`|uni.onAccelerometerChange|监听加速度数据。更多信息查看 https://uniapp.dcloud.io/api/system/accelerometer?id=onaccelerometerchange。|\n|`uni.offAccelerometerChange(() =\u003e {$1})$0`|uni.offAccelerometerChange|取消监听加速度数据。更多信息查看 https://uniapp.dcloud.io/api/system/accelerometer?id=offaccelerometerchange。|\n|`uni.startAccelerometer({,\tinterval: '${1:normal}',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.startAccelerometer|开始监听加速度数据。更多信息查看 https://uniapp.dcloud.io/api/system/accelerometer?id=startaccelerometer。|\n|`uni.stopAccelerometer({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopAccelerometer|停止监听加速度数据。更多信息查看 https://uniapp.dcloud.io/api/system/accelerometer?id=stopaccelerometer。|\n|`uni.onCompassChange(({ direction }) =\u003e {$1})$0`|uni.onCompassChange|监听罗盘数据。更多信息查看 https://uniapp.dcloud.io/api/system/compass?id=oncompasschange。|\n|`uni.offCompassChange(() =\u003e  {$1})$0`|uni.offCompassChange|取消监听罗盘数据。更多信息查看 https://uniapp.dcloud.io/api/system/compass?id=offcompasschange。|\n|`uni.startCompass({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.startCompass|开始监听罗盘数据。更多信息查看 https://uniapp.dcloud.io/api/system/compass?id=startcompass。|\n|`uni.stopCompass({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopCompass|停止监听罗盘数据。更多信息查看 https://uniapp.dcloud.io/api/system/compass?id=stopcompass。|\n|`uni.onGyroscopeChange(({ x, y, z }) =\u003e {$1})$0`|uni.onGyroscopeChange|监听陀螺仪数据。更多信息查看 https://uniapp.dcloud.io/api/system/gyroscope?id=ongyroscopechange。|\n|`uni.offGyroscopeChange(() =\u003e {$1})$0`|uni.offGyroscopeChange|取消监听陀螺仪数据。更多信息查看 https://uniapp.dcloud.io/api/system/gyroscope?id=offgyroscopechange。|\n|`uni.startGyroscope({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.startGyroscope|开始监听陀螺仪数据。更多信息查看 https://uniapp.dcloud.io/api/system/gyroscope?id=startgyroscope。|\n|`uni.stopGyroscope({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopGyroscope|停止监听陀螺仪数据。更多信息查看 https://uniapp.dcloud.io/api/system/gyroscope?id=stopgyroscope。|\n|`uni.makePhoneCall({,\tphoneNumber: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.makePhoneCall|拨打电话。更多信息查看 https://uniapp.dcloud.io/api/system/phone。|\n|`uni.scanCode({,\tonlyFromCamera: ${1:false},,\tscanType: ${2:['qrCode', 'barCode']},,\tsuccess: ({ result, scanType, charSet, path }) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.scanCode|扫码。更多信息查看 https://uniapp.dcloud.io/api/system/barcode。|\n|`uni.setClipboardData({,\tdata: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.setClipboardData|设置剪贴板内容。更多信息查看 https://uniapp.dcloud.io/api/system/clipboard。|\n|`uni.getClipboardData({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getClipboardData|获取剪贴板内容。更多信息查看 https://uniapp.dcloud.io/api/system/clipboard。|\n|`uni.setScreenBrightness({,\tvalue: $1,,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.setScreenBrightness|设置屏幕亮度。更多信息查看 https://uniapp.dcloud.io/api/system/brightness?id=setscreenbrightness。|\n|`uni.getScreenBrightness({,\tsuccess: ({ value }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getScreenBrightness|获取屏幕亮度。更多信息查看 https://uniapp.dcloud.io/api/system/brightness?id=getscreenbrightness。|\n|`uni.setScreenBrightness({,\tkeepScreenOn: ${1:false},,\tsuccess: ({ errMsg }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.setScreenBrightness|设置屏幕亮度。更多信息查看 https://uniapp.dcloud.io/api/system/brightness?id=setscreenbrightness。|\n|`uni.onUserCaptureScreen(() =\u003e {$1})$0`|uni.onUserCaptureScreen|监听截屏。更多信息查看 https://uniapp.dcloud.io/api/system/capture-screen。|\n|`uni.vibrate({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.vibrate|使手机振动。更多信息查看 https://uniapp.dcloud.io/api/system/vibrate?id=vibrate。|\n|`uni.vibrateLong({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.vibrateLong|使手机长振动。更多信息查看 https://uniapp.dcloud.io/api/system/vibrate?id=vibratelong。|\n|`uni.vibrateShort({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.vibrateShort|使手机短振动。更多信息查看 https://uniapp.dcloud.io/api/system/vibrate?id=vibrateshort。|\n|`uni.addPhoneContact({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.addPhoneContact|添加手机联系人。更多信息查看 https://uniapp.dcloud.io/api/system/contact。|\n|`uni.openBluetoothAdapter({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.openBluetoothAdapter|初始化蓝牙模块。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.startBluetoothDevicesDiscovery({,\tservices: ${1:[]},,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.startBluetoothDevicesDiscovery|开始搜寻蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.onBluetoothDeviceFound(({ devices }) =\u003e {$1})$0`|uni.onBluetoothDeviceFound|监听搜寻到蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.stopBluetoothDevicesDiscovery({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopBluetoothDevicesDiscovery|停止搜寻蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.onBluetoothAdapterStateChange(({ available, discovering }) =\u003e {$1})$0`|uni.onBluetoothAdapterStateChange|监听蓝牙适配器状态变化。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.getConnectedBluetoothDevices({,\tservices: ${1:[]},,\tsuccess: ({ devices }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getConnectedBluetoothDevices|根据 uuid 获取已经连接的蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.getBluetoothDevices({,\tsuccess: ({ devices }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getBluetoothDevices|获取蓝牙模块生效期间所有已发现的蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.getBluetoothAdapterState({,\tsuccess: ({ available, discovering }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getBluetoothAdapterState|获取蓝牙适配器状态。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.getBluetoothAdapterState({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.closeBluetoothAdapter|关闭蓝牙模块。更多信息查看 https://uniapp.dcloud.io/api/system/bluetooth。|\n|`uni.setBLEMTU({,\tdeviceId: '$1',,\tmtu: $2,,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.setBLEMTU|设置蓝牙最大传输单元。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.writeBLECharacteristicValue({,\tdeviceId: '$1',,\tserviceId: '$2',,\tcharacteristicId: '$3',,\tvalue: $4,,\tsuccess: (result) =\u003e {$5},,\tfail: (error) =\u003e {$6},})$0`|uni.writeBLECharacteristicValue|向低功耗蓝牙设备特征值写入二进制数据。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.readBLECharacteristicValue({,\tdeviceId: '$1',,\tserviceId: '$2',,\tcharacteristicId: '$3',,\tsuccess: (result) =\u003e {$4},,\tfail: (error) =\u003e {$5},})$0`|uni.readBLECharacteristicValue|读取低功耗蓝牙设备特征值的二进制数据。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.onBLEConnectionStateChange(({ deviceId, connected }) =\u003e {$1})$0`|uni.onBLEConnectionStateChange|监听低功耗蓝牙连接状态改变。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.onBLECharacteristicValueChange(({,\tdeviceId,,\tserviceId,,\tcharacteristicId,,\tvalue,}) =\u003e {$1})$0`|uni.onBLECharacteristicValueChange|监听低功耗蓝牙设备特征值变化。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.notifyBLECharacteristicValueChange({,\tdeviceId: '$1',,\tserviceId: '$2',,\tcharacteristicId: '$3',,\tstate: ${4:true},,\tsuccess: (result) =\u003e {$5},,\tfail: (error) =\u003e {$6},})$0`|uni.notifyBLECharacteristicValueChange|启用低功耗蓝牙设备特征值变化时的 notify 功能。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.getBLEDeviceServices({,\tdeviceId: '$1',,\tsuccess: ({ services }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getBLEDeviceServices|获取蓝牙设备所有服务。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.getBLEDeviceRSSI({,\tdeviceId: '$1',,\tsuccess: ({ RSSI }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getBLEDeviceRSSI|获取蓝牙设备信号强度。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.getBLEDeviceCharacteristics({,\tdeviceId: '$1',,\tserviceId: '$2',,\tsuccess: ({ characteristics }) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.getBLEDeviceCharacteristics|获取蓝牙设备某个服务所有特征值。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.createBLEConnection({,\tdeviceId: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.createBLEConnection|连接低功耗蓝牙设备。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.closeBLEConnection({,\tdeviceId: '$1',,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.closeBLEConnection|断开与低功耗蓝牙设备的连接。更多信息查看 https://uniapp.dcloud.io/api/system/ble。|\n|`uni.onBeaconServiceChange(({ available, discovering }) =\u003e {$1})$0`|uni.onBeaconServiceChange|监听 iBeacon 服务状态变化。更多信息查看 https://uniapp.dcloud.io/api/system/ibeacon。|\n|`uni.onBeaconUpdate(({ beacons }) =\u003e {$1})$0`|uni.onBeaconUpdate|监听 iBeacon 设备更新。更多信息查看 https://uniapp.dcloud.io/api/system/ibeacon。|\n|`uni.getBeacons({,\tsuccess: ({ beacons }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getBeacons|获取所有已搜索到的 iBeacon 设备。更多信息查看 https://uniapp.dcloud.io/api/system/ibeacon。|\n|`uni.startBeaconDiscovery({,\tuuids: $1,,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.startBeaconDiscovery|开始搜索附近 iBeacon 设备。更多信息查看 https://uniapp.dcloud.io/api/system/ibeacon。|\n|`uni.stopBeaconDiscovery({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopBeaconDiscovery|停止搜索附近 iBeacon 设备。更多信息查看 https://uniapp.dcloud.io/api/system/ibeacon。|\n|`uni.startSoterAuthentication({,\trequestAuthModes: ${1:['fingerPrint', 'facial']},,\tchallenge: '$2',,\tauthContent: '$3',,\tsuccess: ({ authMode, resultJSON, resultJSONSignature, errCode, errMsg }) =\u003e {$4},,\tfail: (error) =\u003e {$5},})$0`|uni.startSoterAuthentication|开始 SOTER 生物认证。更多信息查看 https://uniapp.dcloud.io/api/system/authentication?id=startsoterauthentication。|\n|`uni.checkIsSupportSoterAuthentication({,\tsuccess: ({ supportMode }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.checkIsSupportSoterAuthentication|获取支持的 SOTER 生物认证方式。更多信息查看 https://uniapp.dcloud.io/api/system/authentication?id=checkissupportsoterauthentication。|\n|`uni.checkIsSoterEnrolledInDevice({,\tcheckAuthMode: '${1:fingerPrint|facial}',,\tsuccess: ({ isEnrolled, errMsg }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.checkIsSoterEnrolledInDevice|获取设备内是否录入生物信息。更多信息查看 https://uniapp.dcloud.io/api/system/authentication?id=checkissoterenrolledindevice。|\n|`uni.showToast({,\ttitle: '$1',,\ticon: '${2:success|none}',,\tmask: true,})`|uni.showToast|显示消息提示框。这可能与加载提示框冲突，请在测试时以真机测试为准。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=showtoast。|\n|`uni.hideToast()$0`|uni.hideToast|隐藏消息提示框。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=hidetoast。|\n|`uni.showLoading({,\ttitle: '${1:加载中}',,\tmask: ${2:true},})$0`|uni.showLoading|显示加载中提示框。这可能与消息提示框冲突，请在测试时以真机测试为准。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=showloading。|\n|`uni.hideLoading()$0`|uni.hideLoading|隐藏加载中提示框。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=hideloading。|\n|`uni.showModal({,\ttitle: '${1:提示}',,\tcontent: '$2',,\tshowCancel: ${3:true},,\tsuccess: ({ confirm, cancel }) =\u003e {$4},})$0`|uni.showModal|显示模态弹窗。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=showmodal。|\n|`uni.showActionSheet({,\titemList: [$1],,\tsuccess: ({ tapIndex }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.showActionSheet|显示操作菜单。更多信息查看 https://uniapp.dcloud.io/api/ui/prompt?id=showactionsheet。|\n|`uni.setNavigationBarTitle({,\ttitle: '$1',})$0`|uni.setNavigationBarTitle|动态设置当前页面标题。更多信息查看 https://uniapp.dcloud.io/api/ui/navigationbar?id=setnavigationbartitle。|\n|`uni.setNavigationBarColor({,\tfrontColor: '${1:#000000|#ffffff}',,\tbackgroundColor: '${2:#ff0000}',})$0`|uni.setNavigationBarColor|设置页面导航条颜色。更多信息查看 https://uniapp.dcloud.io/api/ui/navigationbar?id=setnavigationbarcolor。|\n|`uni.showNavigationBarLoading()$0`|uni.showNavigationBarLoading|在当前页面显示导航条加载动画。更多信息查看 https://uniapp.dcloud.io/api/ui/navigationbar?id=shownavigationbarloading。|\n|`uni.hideNavigationBarLoading()$0`|uni.hideNavigationBarLoading|在当前页面隐藏导航条加载动画。更多信息查看 https://uniapp.dcloud.io/api/ui/navigationbar?id=hidenavigationbarloading。|\n|`uni.hideHomeButton()$0`|uni.hideHomeButton|隐藏返回首页按钮。更多信息查看 https://uniapp.dcloud.io/api/ui/navigationbar?id=hidehomebutton。|\n|`uni.setTabBarItem({,\tindex: $1,,\ttext: '$2',,\ticonPath: '/static/$3',,\tselectedIconPath: '/static/$4',})$0`|uni.setTabBarItem|动态设置 TabBar 某一项内容。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=settabbaritem。|\n|`uni.setTabBarStyle({,\tcolor: '${1:#FF0000}',,\tselectedColor: '${2:#00FF00}',,\tbackgroundColor: '${3:#0000FF}',,\tborderStyle: '${4:black|white}',})$0`|uni.setTabBarStyle|动态设置 TabBar 整体样式。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=settabbarstyle。|\n|`uni.hideTabBar()$0`|uni.hideTabBar|隐藏 TabBar。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=hidetabbar。|\n|`uni.showTabBar()$0`|uni.showTabBar|显示 TabBar。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=showtabbar。|\n|`uni.setTabBarBadge({,\tindex: $1,,\ttext: '$2',})$0`|uni.setTabBarBadge|设置 TabBar 某一项徽标。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=settabbarbadge。|\n|`uni.removeTabBarBadge({,\tindex: $1,})$0`|uni.removeTabBarBadge|移除 tabBar 某一项徽标。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=removetabbarbadge。|\n|`uni.showTabBarRedDot({,\tindex: $1,,})$0`|uni.showTabBarRedDot|设置 TabBar 某一项红点。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=showtabbarreddot。|\n|`uni.hideTabBarRedDot({,index: $1,,})$0`|uni.hideTabBarRedDot|移除 tabBar 某一项红点。更多信息查看 https://uniapp.dcloud.io/api/ui/tabbar?id=hidetabbarreddot。|\n|`uni.setBackgroundColor({,\tbackgroundColor: '${1:#ffffff}',,\tbackgroundColorTop: '${2:#ffffff}',,\tbackgroundColorBottom: '${3:#ffffff}',})$0`|uni.setBackgroundColor|动态设置窗口背景色。更多信息查看 https://uniapp.dcloud.io/api/ui/bgcolor?id=setbackgroundcolor。|\n|`uni.setBackgroundTextStyle({,\ttextStyle: '{$1:dark|light}',})$0`|uni.setBackgroundTextStyle|动态设置下拉背景字体、加载图的样式。更多信息查看 https://uniapp.dcloud.io/api/ui/bgcolor?id=setbackgroundtextstyle。|\n|`uni.createAnimation({$1})$0`|uni.createAnimation|创建动画实例。更多信息查看 https://uniapp.dcloud.io/api/ui/animation。|\n|`uni.pageScrollTo({,\tscrollTop: ${1:0},})$0`|uni.pageScrollTo|将页面滚动到目标位置。更多信息查看 https://uniapp.dcloud.io/api/ui/scroll。|\n|`uni.onWindowResize(({ size: { windowWidth, windowHeight } }) =\u003e {$1})$0`|uni.onWindowResize|监听窗口尺寸变化。更多信息查看 https://uniapp.dcloud.io/api/ui/window?id=onwindowresize。|\n|`uni.offWindowResize(() =\u003e {$1})$0`|uni.offWindowResize|取消监听窗口尺寸变化。更多信息查看 https://uniapp.dcloud.io/api/ui/window?id=offwindowresize。|\n|`uni.loadFontFace({,\tfamily: '$1',,\tsource: 'url($2)',,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.loadFontFace|动态加载网络字体。更多信息查看 https://uniapp.dcloud.io/api/ui/font。|\n|`uni.startPullDownRefresh({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.startPullDownRefresh|开始下拉刷新。更多信息查看 https://uniapp.dcloud.io/api/ui/pulldown?id=startpulldownrefresh。|\n|`uni.stopPullDownRefresh({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.stopPullDownRefresh|停止下拉刷新。更多信息查看 https://uniapp.dcloud.io/api/ui/pulldown?id=startpulldownrefresh。|\n|`uni.createSelectorQuery()$0`|uni.createSelectorQuery|创建查询节点信息的实例。更多信息查看 https://uniapp.dcloud.io/api/ui/nodes-info。|\n|`uni.getMenuButtonBoundingClientRect()$0`|uni.getMenuButtonBoundingClientRect|获取菜单按钮信息。更多信息查看 https://uniapp.dcloud.io/api/ui/menuButton。|\n|`uni.saveFile({,\ttempFilePath: ${1:tempFilePaths[0]},,\tsuccess: ({ savedFilePath }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.saveFile|保存文件到本地。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=savefile。|\n|`uni.getSavedFileList({,\tsuccess: ({ fileList, errMsg }) =\u003e {$1}),,\tfail: (error) =\u003e {$2},})$0`|uni.getSavedFileList|获取本地已保存的文件列表。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=getsavedfilelist。|\n|`uni.getSavedFileInfo({,\tfilePath: ${1:fileList[0].filePath},,\tsuccess: ({ size, createTime, errMsg }) =\u003e {$2},\tfail: (error) =\u003e {$3},})$0`|uni.getSavedFileInfo|获取本地文件的文件信息。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=getsavedfileinfo。|\n|`uni.removeSavedFile({,\tfilePath: ${1:fileList[0].filePath},,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.removeSavedFile|删除本地存储的文件。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=removesavedfile。|\n|`uni.uni.getFileInfo({,\tfilePath: ${1:fileList[0].filePath},,\tsuccess: ({ size, digest, errMsg }) =\u003e {$2},\tfail: (error) =\u003e {$3},})$0`|uni.getFileInfo|获取文件信息。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=getfileinfo。|\n|`uni.openDocument({,\tfilePath: ${1:tempFilePath},,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.openDocument|新开页面打开文档。更多信息查看 https://uniapp.dcloud.io/api/file/file?id=opendocument。|\n|`uni.createCanvasContext({ canvasId: '${1:canvasId}' })$0`|uni.createCanvasContext|创建画布上下文。更多信息查看 https://uniapp.dcloud.io/api/canvas/createCanvasContext。|\n|`uni.canvasToTempFilePath({ canvasId: '${1:canvasId}' })$0`|uni.canvasToTempFilePath|导出画布内容。更多信息查看 https://uniapp.dcloud.io/api/canvas/canvasToTempFilePath。|\n|`uni.getProvider({,\tservice: ${1:oauth|share|payment|push},,\tsuccess: ({ service, provider }) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.getProvider|获取服务供应商。更多信息查看 https://uniapp.dcloud.io/api/plugins/provider。|\n|`uni.login({,\tprovider: $1,,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.login|登录。更多信息查看 https://uniapp.dcloud.io/api/plugins/login?id=login。|\n|`uni.checkSession({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.checkSession|检查登录状态。更多信息查看 https://uniapp.dcloud.io/api/plugins/login?id=unichecksession。|\n|`uni.getUserInfo({,\tprovider: $1,,\twithCredentials: ${2:true},,\tsuccess: ({ userInfo, rawData, signature, encryptedData, iv, errMsg }) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.getUserInfo|检查登录状态。更多信息查看 https://uniapp.dcloud.io/api/plugins/login?id=unichecksession。|\n|`uni.share({,\tprovider: $1,,\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.share|分享。更多信息查看 https://uniapp.dcloud.io/api/plugins/share?id=share。|\n|`uni.showShareMenu({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.showShareMenu|原生菜单显示分享按钮。更多信息查看 https://uniapp.dcloud.io/api/plugins/share?id=showsharemenu。|\n|`uni.hideShareMenu({,\tsuccess: (result) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.hideShareMenu|原生菜单隐藏分享按钮。更多信息查看 https://uniapp.dcloud.io/api/plugins/share?id=hidesharemenu。|\n|`uni.requestPayment({,\tprovider: $1,,\torderInfo: $2,,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.requestPayment|支付。更多信息查看 https://uniapp.dcloud.io/api/plugins/payment。|\n|`uni.authorize({,\tscope: '$1',\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})$0`|uni.authorize|授权。更多信息查看 https://uniapp.dcloud.io/api/other/authorize。|\n|`uni.getSetting({,\tsuccess: ({ authSetting }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.openSetting|打开设置界面。更多信息查看 https://uniapp.dcloud.io/api/other/setting?id=opensetting。|\n|`uni.getSetting({,\tsuccess: ({ authSetting, subscriptionsSetting }) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.getSetting|获取当前设置。更多信息查看 https://uniapp.dcloud.io/api/other/setting?id=getsetting。|\n|`uni.chooseAddress({,\tsuccess: ({,\t\tuserName,,\t\tpostalCode,,\t\tprovinceName,,\t\tcityName,,\t\tdetailInfo,,\t\tnationalCode,,\t\ttelNumber,,\t\terrMsg,\t}) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.chooseAddress|获取当前设置。更多信息查看 https://uniapp.dcloud.io/api/other/choose-address。|\n|`uni.chooseInvoiceTitle({,\tsuccess: ({,\t\ttype,,\t\ttitle,,\t\ttaxNumber,,\t\tcompanyAddress,,\t\ttelephone,,\t\tbankName,,\t\tbankAccount,,\t\terrMsg,\t}) =\u003e {$1},,\tfail: (error) =\u003e {$2},})$0`|uni.chooseInvoiceTitle|获取当前设置。更多信息查看 https://uniapp.dcloud.io/api/other/invoice-title。|\n|`uni.navigateToMiniProgram({,\tappId: '$1',,\tpath: '$2',,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.navigateToMiniProgram|打开小程序。更多信息查看 https://uniapp.dcloud.io/api/other/open-miniprogram?id=navigatetominiprogram。|\n|`uni.navigateToMiniProgram({,\tappId: '$1',,\tpath: '$2',,\tsuccess: (result) =\u003e {$3},,\tfail: (error) =\u003e {$4},})$0`|uni.navigateToMiniProgram|从打开的小程序返回。更多信息查看 https://uniapp.dcloud.io/api/other/open-miniprogram?id=navigatebackminiprogram。|\n|`uni.getAccountInfoSync()$0`|uni.getAccountInfoSync|同步获取账号信息。更多信息查看 https://uniapp.dcloud.io/api/other/getAccountInfoSync。|\n|`uni.report({,\t${1:eventName},\t${2:''|{}},})$0`|uni.report|统计。更多信息查看 https://uniapp.dcloud.io/api/other/report。|\n|`uni.getUpdateManager()$0`|uni.getUpdateManager|获取全局唯一版本更新管理器。更多信息查看 https://uniapp.dcloud.io/api/other/update。|\n|`uni.setEnabledDebug({,\tenableDebug: ${1:true},\tsuccess: (result) =\u003e {$2},,\tfail: (error) =\u003e {$3},})`|uni.setEnableDebug|设置调试开关。更多信息查看 https://uniapp.dcloud.io/api/other/set-enable-debug。|\n\n\n\n# HTML\n\n|API|Prefix|Description|\n|-|-|-|\n|`APP-PLUS`|`platform-app,platform-app-plus,app,app-plus`|APP 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`APP-NVUE`|`platform-app-nvue,platform-app-plus-nvue,app-nvue,app-plus-nvue`|APP-NVUE 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`H5`|`platform-h5,h5`|H5 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-WEIXIN`|`platform-mp-weixin,platform-weixin,platform-mp-wechat,platform-wechat,mp-weixin,weixin,mp-wechat,wechat`|微信小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-ALIPAY`|`platform-mp-alipay,platform-alipay,platform-mp-ali,platform-ali,mp-alipay,alipay,mp-ali,ali`|支付宝小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-BAIDU`|`platform-mp-baidu,platform-baidu,mp-baidu,baidu`|百度小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-TOUTIAO`|`platform-mp-toutiao,platform-toutiao,platform-mp-bytedance,platform-bytedance,mp-toutiao,toutiao,mp-bytedance,bytedance`|字节跳动小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-QQ`|`platform-mp-qq,platform-qq,mp-qq,qq`|QQ 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-360`|`platform-mp-360,platform-360,mp-360,360`|360 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP`|`platform-mp,mp`|小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW`|`platform-quickapp,platform-quickapp-webview,quickapp,quickapp-webview`|快应用通用对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-UNION`|`platform-quickapp-union,platform-quickapp-webview-union,quickapp-union,quickapp-webview-union`|快应用联盟对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-HUAWEI`|`platform-quickapp-huawei,platform-quickapp-webview-huawei,quickapp-huawei,quickapp-webview-huawei`|快应用华为对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`\u003c!-- #ifdef $1 --\u003e,$2,\u003c!-- #endif --\u003e`|`#ifdef,ifdef`|条件编译，处理某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`\u003c!-- #ifndef $1 --\u003e,$2,\u003c!-- #endif --\u003e`|`#ifndef,ifndef`|条件编译，排除某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`\u003c!-- #endif --\u003e`|`#endif,endif`|结束条件编译。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`\u003cview\u003e$1\u003c/view\u003e$0`|`view,\u003cview\u003e`|视图容器，用于包裹各种元素内容。更多信息查看 https://uniapp.dcloud.io/component/view。|\n|`\u003cscroll-view scroll-${1:y}\u003e,\t$2,\u003c/scroll-view\u003e$0`|`scroll-view,\u003cscroll-view\u003e`|可滚动视图区域。竖向滚动时，需要给一个固定高度。更多信息查看 https://uniapp.dcloud.io/component/scroll-view。|\n|`\u003cswiper,\tindicator-dots,\tautoplay,\tcircular,\u003e,\t\u003cswiper-item\u003e$1\u003c/swiper-item\u003e,\u003c/swiper\u003e$0`|`swiper,\u003cswiper\u003e`|滑块视图容器。子组件只能是 swiper-item。竖向滑动时，需要给一个固定高度。更多信息查看 https://uniapp.dcloud.io/component/swiper?id=swiper。|\n|`\u003cswiper-item\u003e$1\u003c/swiper-item\u003e$0`|`swiper-item,\u003cswiper-item\u003e`|只能是 swiper 的子组件，宽高自动设置为 100%。更多信息查看 https://uniapp.dcloud.io/component/swiper?id=swiper-item。|\n|`\u003cmatch-media $1\u003e$2\u003c/match-media\u003e$0`|`match-media,\u003cmatch-media\u003e`|可适配不同屏幕的基本视图组件。更多信息查看 https://uniapp.dcloud.io/component/match-media。|\n|`\u003cmovable-area ${1:scale-area}\u003e,\t\u003cmovable-view,\t\tdirection=\"${2:all}\",\t\t:x=\"$3\",\t\t:y=\"$4\",\t\t@change=\"$5\",\t\t@scale=\"$6\",\t\u003e,\t\t$7,\t\u003c/movable-view\u003e,\u003c/movable-area\u003e$0`|`movable-area,\u003cmovable-area\u003e`|可拖动区域组件，指代可拖动的范围。子组件只能是 movable-view。更多信息查看 https://uniapp.dcloud.io/component/movable-view?id=movable-area。|\n|`\u003cmovable-view,\tdirection=\"${1:all}\",\t:x=\"$2\",\t:y=\"$3\",\t@change=\"$4\",\t@scale=\"$5\",\u003e,\t$6,\u003c/movable-view\u003e$0`|`movable-view,\u003cmovable-view\u003e`|可移动的视图容器。只能是 movable-area 的子组件。更多信息查看 https://uniapp.dcloud.io/component/movable-view?id=movable-view。|\n|`\u003ccover-view\u003e$1\u003c/cover-view\u003e$0`|`cover-view,\u003ccover-view\u003e`|覆盖在原生组件上的文本视图。更多信息查看 https://uniapp.dcloud.io/component/cover-view?id=cover-view。|\n|`\u003ccover-image src=\"$1\"\u003e\u003c/cover-image\u003e$0`|`cover-image,\u003ccover-image\u003e`|覆盖在原生组件上的图片视图。可以嵌套在 cover-view 里。更多信息查看 https://uniapp.dcloud.io/component/cover-view?id=cover-image。|\n|`\u003cicon,\ttype=\"$1\",\t:size=\"${2:23}\",\tcolor=\"$3\",/\u003e$0`|`icon,\u003cicon\u003e`|图标。更多信息查看 https://uniapp.dcloud.io/component/icon。|\n|`\u003ctext\u003e$1\u003c/text\u003e$0`|`text,\u003ctext\u003e`|文本组件。用于包裹文本内容。更多信息查看 https://uniapp.dcloud.io/component/text。|\n|`\u003crich-text :nodes=\"$1\"\u003e\u003c/rich-text\u003e$0`|`rich-text,\u003crich-text\u003e`|富文本。更多信息查看 https://uniapp.dcloud.io/component/rich-text。|\n|`\u003cprogress :percent=\"$1\" /\u003e$0`|`progress,\u003cprogress\u003e`|进度条。更多信息查看 https://uniapp.dcloud.io/component/progress。|\n|`\u003cbutton,\t:disabled=\"$1\",\t:loading=\"$2\",\topen-type=\"$3\",\thover-class=\"button-hover\",\t@click=\"$4\",\u003e,\t$5,\u003c/button\u003e$0`|`button,\u003cbutton\u003e`|按钮。更多信息查看 https://uniapp.dcloud.io/component/button。|\n|`\u003ccheckbox-group @change=\"$1\"\u003e,\t\u003clabel\u003e,\t\t\u003ccheckbox,\t\t\t:value=\"$2\",\t\t\t:checked=\"$3\",\t\t/\u003e,\t\t$4,\t\u003c/label\u003e,\u003c/checkbox-group\u003e$0`|`checkbox-group,\u003ccheckbox-group\u003e`|多选框组。更多信息查看 https://uniapp.dcloud.io/component/checkbox?id=checkbox-group。|\n|`\u003ccheckbox,\t:value=\"$1\",\t:checked=\"$2\",/\u003e$0`|`checkbox,\u003ccheckbox\u003e`|多选框。更多信息查看 https://uniapp.dcloud.io/component/checkbox?id=checkbox。|\n|`\u003ceditor $1\u003e\u003c/editor\u003e$0`|`editor,\u003ceditor\u003e`|富文本编辑器，可以对图片、文字格式进行编辑和混排。更多信息查看 https://uniapp.dcloud.io/component/editor。|\n|`\u003cform,\t@submit=\"$1\",\t@reset=\"$2\",\u003e,\t$3,\t\u003cbutton form-type=\"submit\"\u003e${4:提交}\u003c/button\u003e,\t\u003cbutton form-type=\"reset\"\u003e${5:重置}\u003c/button\u003e,\u003c/form\u003e$0`|`form,\u003cform\u003e`|表单，将组件内的用户输入的 switch input checkbox slider radio picker 提交。更多信息查看 https://uniapp.dcloud.io/component/form。|\n|`\u003cinput,\tv-model=\"$1\",\tplaceholder=\"$2\",\tplaceholder-class=\"input-placeholder\",\t@input=\"$4\",/\u003e$0`|`input,\u003cinput\u003e`|输入框。更多信息查看 https://uniapp.dcloud.io/component/input。|\n|`\u003clabel\u003e$1\u003c/label\u003e$0`|`label,\u003clabel\u003e`|用来改进表单组件的可用性。更多信息查看 https://uniapp.dcloud.io/component/label。|\n|`\u003cpicker,\tmode=\"selector\",\t:range=\"$1\",\t:range-key=\"$2\",\t:value=\"$3\",\t@change=\"$4\",\u003e,\t$5,\u003c/picker\u003e$0`|`picker-selector,\u003cpicker-selector\u003e`|单列选择器。更多信息查看 https://uniapp.dcloud.io/component/picker?id=%e6%99%ae%e9%80%9a%e9%80%89%e6%8b%a9%e5%99%a8。|\n|`\u003cpicker,\tmode=\"multiSelector\",\t:range=\"$1\",\t:range-key=\"$2\",\t:value=\"$3\",\t@change=\"$4\",\u003e,\t$5,\u003c/picker\u003e$0`|`picker-multi,picker-multi-selector,\u003cpicker-multi\u003e,\u003cpicker-multi-selector\u003e`|多列选择器。更多信息查看 https://uniapp.dcloud.io/component/picker?id=%e5%a4%9a%e5%88%97%e9%80%89%e6%8b%a9%e5%99%a8。|\n|`\u003cpicker,\tmode=\"time\",\t:value=\"$1\",\t@change=\"$2\",\u003e,\t$3,\u003c/picker\u003e$0`|`picker-time,\u003cpicker-time\u003e`|时间选择器。更多信息查看 https://uniapp.dcloud.io/component/picker?id=%e6%97%b6%e9%97%b4%e9%80%89%e6%8b%a9%e5%99%a8。|\n|`\u003cpicker,\tmode=\"date\",\t:value=\"$1\",\t@change=\"$2\",\u003e,\t$3,\u003c/picker\u003e$0`|`picker-date,\u003cpicker-date\u003e`|日期选择器。更多信息查看 https://uniapp.dcloud.io/component/picker?id=%e6%97%a5%e6%9c%9f%e9%80%89%e6%8b%a9%e5%99%a8。|\n|`\u003cpicker,\tmode=\"region\",\t:value=\"$1\",\t@change=\"$2\",\u003e,\t$3,\u003c/picker\u003e$0`|`picker-region,\u003cpicker-region\u003e`|区域选择器。更多信息查看 https://uniapp.dcloud.io/component/picker?id=%e7%9c%81%e5%b8%82%e5%8c%ba%e9%80%89%e6%8b%a9%e5%99%a8。|\n|`\u003cpicker-view,\t:value=\"$1\",\t@change=\"$2\",\u003e,\t\u003cpicker-view-column\u003e$3\u003c/picker-view-column\u003e,\u003c/picker-view\u003e$0`|`picker-view,\u003cpicker-view\u003e`|比 picker 更灵活的嵌入页面的滚动选择器。子组件只能是 picker-view-column。更多信息查看 https://uniapp.dcloud.io/component/picker-view?id=picker-view。|\n|`\u003cpicker-view-column\u003e$1\u003c/picker-view-column\u003e$0`|`picker-view-column,\u003cpicker-view-column\u003e`|只能是 picker-view 的子组件。更多信息查看 https://uniapp.dcloud.io/component/picker-view?id=picker-view-column。|\n|`\u003cradio-group @change=\"$1\"\u003e,\t\u003clabel\u003e,\t\t\u003cradio,\t\t\t:value=\"$2\",\t\t\t:checked=\"$3\",\t\t/\u003e,\t\t$4,\t\u003c/label\u003e,\u003c/radio-group\u003e$0`|`radio-group,\u003cradio-group\u003e`|单选框组。更多信息查看 https://uniapp.dcloud.io/component/radio?id=radio-group。|\n|`\u003cradio,\t:value=\"$1\",\t:checked=\"$2\",/\u003e$0`|`radio,\u003cradio\u003e`|单选框。更多信息查看 https://uniapp.dcloud.io/component/radio?id=radio。|\n|`\u003cslider,\t:value=\"$1\",\t@change=\"$2\",/\u003e$0`|`slider,\u003cslider\u003e`|滑动选择器。更多信息查看 https://uniapp.dcloud.io/component/slider。|\n|`\u003cswitch,\t:checked=\"$1\",\t@change=\"$2\",/\u003e$0`|`switch,\u003cswitch\u003e`|开关选择器。更多信息查看 https://uniapp.dcloud.io/component/switch。|\n|`\u003ctextarea,\tv-model=\"$1\",\tplaceholder=\"$2\",\tplaceholder-class=\"textarea-placeholder\",\t@input=\"$4\",/\u003e$0`|`textarea,\u003ctextarea\u003e`|多行输入框。更多信息查看 https://uniapp.dcloud.io/component/textarea。|\n|`\u003cnavigator,\turl=\"/pages/$1\",\topen-type=\"${2:navigate}\",\thover-class=\"navigator-hover\",\u003e,\t$3,\u003c/navigator\u003e$0`|`navigator,\u003cnavigator\u003e`|页面跳转组件。只能跳转本地页面。目标页面必须已注册。更多信息查看 https://uniapp.dcloud.io/component/navigator。|\n|`\u003ccustom-tab-bar,\tdirection=\"${1:horizontal}\",\t:show-icon=\"${2:false}\",\t:selected=\"${3:0}\",\t@onTabItemTap=\"$4\",\u003e,\u003c/custom-tab-bar\u003e$0`|`custom-tab-bar,\u003ccustom-tab-bar\u003e`|【H5 专用】自定义 TabBar 组件。更多信息查看 https://uniapp.dcloud.io/component/custom-tab-bar。|\n|`\u003c!-- 请考虑使用 uni.createInnerAudioContext 代替 --\u003e,\u003caudio,\tid=\"$1\",\tsrc=\"$2\",\t${3:controls},\t@error=\"$4\",\t@play=\"$5\",\t@pause=\"$6\",\t@timeupdate=\"$7\",\t@ended=\"$8\",/\u003e$0`|`audio,\u003caudio\u003e`|音频组件。更多信息查看 https://uniapp.dcloud.io/component/audio。|\n|`\u003c!-- 请考虑使用 uni.chooseImage 或 uni.chooseVideo 代替 --\u003e,\u003ccamera,\tmode=\"${1:normal}\",\tdevice-position=\"${2:back}\",\tflash=\"${3:auto}\",/\u003e$0`|`camera,\u003ccamera\u003e`|页面内嵌的区域相机组件。更多信息查看 https://uniapp.dcloud.io/component/camera。|\n|`\u003cimage,\tsrc=\"$1\",\tmode=\"${2:scaleToFill}\",/\u003e$0`|`image,\u003cimage\u003e`|图片组件。更多信息查看 https://uniapp.dcloud.io/component/image。|\n|`\u003cvideo src=\"$1\" /\u003e$0`|`video,\u003cvideo\u003e`|视频组件。更多信息查看 https://uniapp.dcloud.io/component/video。|\n|`\u003clive-player,\tid=\"$1\",\tsrc=\"$2\",\t${3:autoplay},/\u003e$0`|`live-player,\u003clive-player\u003e`|直播拉流组件。更多信息查看 https://uniapp.dcloud.io/component/live-player。|\n|`\u003clive-pusher url=\"$1\" /\u003e$0`|`live-pusher,\u003clive-pusher\u003e`|直播推流组件。更多信息查看 https://uniapp.dcloud.io/component/live-pusher。|\n|`\u003cmap,\tlongitude=\"$1\",\tlatitude=\"$2\",\tmarkers=\"$3\",/\u003e$0`|`map,\u003cmap\u003e`|地图组件。更多信息查看 https://uniapp.dcloud.io/component/map。|\n|`\u003ccanvas canvas-id=\"${1:canvasId}\" /\u003e$0`|`canvas,\u003ccanvas\u003e`|画布组件。更多信息查看 https://uniapp.dcloud.io/component/canvas。|\n|`\u003cweb-view src=\"$1\" /\u003e$0`|`web-view,\u003cweb-view\u003e`|浏览器组件，自动铺满整个页面。更多信息查看 https://uniapp.dcloud.io/component/web-view。|\n|`\u003cad $1 /\u003e$0`|`ad,\u003cad\u003e`|应用内展示的广告组件。更多信息查看 https://uniapp.dcloud.io/component/ad。|\n|`\u003cnavigation-bar $1 /\u003e$0`|`navigation-bar,\u003cnavigation-bar\u003e`|页面导航条配置节点，用于指定导航栏的一些属性。只能是 page-meta 组件第一个子组件。更多信息查看 https://uniapp.dcloud.io/component/navigation-bar。|\n|`\u003cpage-meta $1\u003e,\t\u003cnavigation-bar $2 /\u003e,\u003c/page-meta\u003e$0`|`page-meta,\u003cpage-meta\u003e`|页面属性配置节点，用于指定页面的一些属性、监听页面事件。只能是页面内第一个组件。更多信息查看 https://uniapp.dcloud.io/component/page-meta。|\n|`\u003copen-data type=\"$1\" /\u003e$0`|`open-data,\u003copen-data\u003e`|用于展示平台开放的数据。更多信息查看 https://uniapp.dcloud.io/component/open-data。|\n\n\n## CSS\n\n|API|Prefix|Description|\n|-|-|-|\n|`APP-PLUS`|platform-app,platform-app-plus,app,app-plus|APP 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`APP-NVUE`|platform-app-nvue,platform-app-plus-nvue,app-nvue,app-plus-nvue|APP-NVUE 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`H5`|platform-h5,h5|H5 对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-WEIXIN`|platform-mp-weixin,platform-weixin,platform-mp-wechat,platform-wechat,mp-weixin,weixin,mp-wechat,wechat|微信小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-ALIPAY`|platform-mp-alipay,platform-alipay,platform-mp-ali,platform-ali,mp-alipay,alipay,mp-ali,ali|支付宝小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-BAIDU`|platform-mp-baidu,platform-baidu,mp-baidu,baidu|百度小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-TOUTIAO`|platform-mp-toutiao,platform-toutiao,platform-mp-bytedance,platform-bytedance,mp-toutiao,toutiao,mp-bytedance,bytedance|字节跳动小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-QQ`|platform-mp-qq,platform-qq,mp-qq,qq|QQ 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP-360`|platform-mp-360,platform-360,mp-360,360|360 小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`MP`|platform-mp,mp|小程序对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW`|platform-quickapp,platform-quickapp-webview,quickapp,quickapp-webview|快应用通用对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-UNION`|platform-quickapp-union,platform-quickapp-webview-union,quickapp-union,quickapp-webview-union|快应用联盟对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`QUICKAPP-WEBVIEW-HUAWEI`|platform-quickapp-huawei,platform-quickapp-webview-huawei,quickapp-huawei,quickapp-webview-huawei|快应用华为对应的 %PLATFORM 值。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`/* #ifdef $1 */,$2,/* #endif */`|#ifdef,ifdef|条件编译，处理某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`/* #ifndef $1 */,$2,/* #endif */`|#ifndef,ifndef|条件编译，排除某平台。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`/* #endif */`|#endif,endif|结束条件编译。更多信息查看 https://uniapp.dcloud.io/platform。|\n|`var(--status-bar-height)`|--status-bar-height,var(--status-bar-height)|系统状态栏高度变量。更多信息查看 https://uniapp.dcloud.io/frame?id=css%e5%8f%98%e9%87%8f。|\n|`var(--window-top)`|--window-top,var(--window-top)|内容区域距离顶部的距离变量。更多信息查看 https://uniapp.dcloud.io/frame?id=css%e5%8f%98%e9%87%8f。|\n|`var(--window-bottom)`|--window-bottom,var(--window-bottom)|内容区域距离底部的距离变量。更多信息查看 https://uniapp.dcloud.io/frame?id=css%e5%8f%98%e9%87%8f。|\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Funi-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwscats%2Funi-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Funi-app/lists"}