From 22e638111dcb9ec2afcaa66514cf8a1fbc8d014b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Thu, 17 Nov 2022 11:23:14 +0800 Subject: [PATCH] Update uts-plugin.md --- docs/plugin/uts-plugin.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/plugin/uts-plugin.md b/docs/plugin/uts-plugin.md index 8f44168f6..457da5567 100644 --- a/docs/plugin/uts-plugin.md +++ b/docs/plugin/uts-plugin.md @@ -573,6 +573,15 @@ let frameContent = decorView.findViewById(android.R.id.content) let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT); ``` +### 函数参数默认值 + +函数参数支持设置默认值,比如下面testName + +```ts +function connectWifi(option: WifiConnectOption,testName :string = "zhangsan") +``` + + ## 路线图 uts是一个宏大工程,产品将分阶段发布。近期将陆续发布: -- GitLab