From a1f3aba4b984b145ed07ca1b77a260c5d3f6acf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Wed, 26 Oct 2022 12:37:44 +0800 Subject: [PATCH] Update uts-for-android.md --- docs/plugin/uts-for-android.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index 8eb5faea2..8f0324752 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -110,12 +110,12 @@ uts语法详细介绍:[uts语法介绍](https://uniapp.dcloud.net.cn/tutorial/ ``` - 标准的UTS环境中,只有`Number`类型而没有`Int`类型 + 而标准的TS环境中,只有`Number`类型而没有`Int`类型 - 为了适应这种情况,UTS 允许开发者使用原生平台的数据类型Int,来原生平台API对数据类型的要求: + 为了适应这种情况,UTS 允许开发者使用原生平台的数据类型Int,来满足原生API对数据类型的要求: ```ts - override onStartCommand(intent:Intent ,flags:Int ,startId:Int):Number { + override onStartCommand(intent:Intent ,flags:Int ,startId:Int):Int { return super.onStartCommand(intent, flags, startId); } ``` @@ -141,9 +141,9 @@ onAppActivityRequestPermissionsResult(fun(requestCode: Number, permissions: Muta ``` -标准的UTS环境中,没有`MutableList`类型,与之相近的数据类型是 `Array` +标准的TS环境中,没有`MutableList`类型,与之相近的数据类型是 `Array` -为了适应这种情况,UTS 允许开发者使用原生平台的数据类型`MutableList`,来满足原生平台API对数据类型的明确要求: +为了适应这种情况,UTS 允许开发者使用原生平台的数据类型`MutableList`,来满足原生平台API对数据类型的要求: ```ts -- GitLab