diff --git a/docs/plugin/uts-plugin.md b/docs/plugin/uts-plugin.md index 1056ab739a914c18a138bc39cdae978c68ebf605..195b03aaf1355f78aa0076e00a965e0cadff1dc1 100644 --- a/docs/plugin/uts-plugin.md +++ b/docs/plugin/uts-plugin.md @@ -467,14 +467,13 @@ export default function getBatteryInfo(options: GetBatteryInfoOptions) { ### 3.2 UTS 与 JS环境数据交互说明 -UTS向uni-app传值: +UTS向uni-app传值,支持下列类型: -支持下列类型: -1 TS基本数据类型: Number,string,boolean 等 +1 TS基本数据类型: number,string,boolean 等 ```ts // 基础类型-Number -export function getPluginVersionNum(): Number{ +export function getPluginVersionNum(): number{ return 120 } // 基础类型-string @@ -511,12 +510,12 @@ export function getPluginVersion(): JSONObject{ } ``` -uni-app向UTS环境传值 +uni-app向UTS环境传值,支持下列类型: -1 TS基本数据类型: Number,string,boolean 等 +1 TS基本数据类型: number,string,boolean 等 ```ts // 基础数据类型示例 -export function postUserInfo(name:string,age:Number){ +export function postUserInfo(name:string,age:number){ console.log("name == " + name); console.log("age == " + age); } @@ -531,7 +530,7 @@ postUserInfo("zhangsan",12); ```ts // type 数据类型示例 -export function postUserInfo(name:string,age:Number){ +export function postUserInfo(name:string,age:number){ console.log("name == " + name); console.log("age == " + age); }