From ae9060513283d9f762e25b89b8cfc503cf7ed837 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Fri, 22 Dec 2023 08:13:21 +0800 Subject: [PATCH] X --- docs/api/README.md | 8 ++++---- docs/api/ext.md | 34 +++++++++++++++++++++++++++++++++- docs/readme.md | 18 ++++++++++-------- docs/sample.md | 6 ++++-- docs/uts/utsandroid.md | 4 +--- 5 files changed, 52 insertions(+), 18 deletions(-) diff --git a/docs/api/README.md b/docs/api/README.md index 68745625..3e8c41ff 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -2,13 +2,13 @@ uni-app x项目的uts代码中可以使用很多API。包括: -- uts的api [详见](../uts/buildin-object-api/global.md) +- uts的api,包括[内置对象](../uts/buildin-object-api/global.md),以及平台专有对象[UTSAndroid](../uts/utsandroid.md)和[UTSiOS](../uts/utsios.md) - 全局api,前面不需要加`uni.`。如`getApp` - uni.xxx的内置api。见左侧 -- uniCloud.xxx的内置api。见左侧 -- dom的api [详见](dom/README.md) +- uniCloud.xxx的内置api [详见](./unicloud/README.md) +- dom的api [详见](../dom/README.md) - vue的api [详见](../vue/README.md) -- 原生api +- os原生api 由于uts可以直接调用Android和iOS的api,所以os和三方sdk的能力都可以在uts中调用。如下: diff --git a/docs/api/ext.md b/docs/api/ext.md index cc0a799d..e3812196 100644 --- a/docs/api/ext.md +++ b/docs/api/ext.md @@ -9,7 +9,38 @@ - [扫码](https://ext.dcloud.net.cn/search?q=%E6%89%AB%E7%A0%81&cat1=8&type=UpdatedDate):`uni.scanCode` - [文件选择](https://ext.dcloud.net.cn/search?q=%E6%96%87%E4%BB%B6%E9%80%89%E6%8B%A9&cat1=8&cat2=81):`uni.chooseFile` - [蓝牙](https://ext.dcloud.net.cn/search?q=%E8%93%9D%E7%89%99&orderBy=Relevance&cat1=8&cat2=81) -- [nfc](https://ext.dcloud.net.cn/search?q=nfc&orderBy=Relevance&cat1=8&cat2=81) +- [NFC](https://ext.dcloud.net.cn/search?q=nfc&orderBy=Relevance&cat1=8&cat2=81) +- 播放音频:`uni.getBackgroundAudioManager`、`uni.createInnerAudioContext`,参考如下代码: +```vue + + +``` uni-app x 中不再支持plus和weex的API。过于plus api中一些常用的api,在uni-app x中进行了替换增补。 - plus.runtime.quit => [uni.exit](./exit.md) @@ -22,6 +53,7 @@ uni-app x 中不再支持plus和weex的API。过于plus api中一些常用的api +