From f7409723acae24427d61a8ccc6e062537fbe60d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Tue, 10 Oct 2023 17:56:56 +0800 Subject: [PATCH] Update uts-plugin.md --- docs/plugin/uts-plugin.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/plugin/uts-plugin.md b/docs/plugin/uts-plugin.md index add24f943..7c37ca2bd 100644 --- a/docs/plugin/uts-plugin.md +++ b/docs/plugin/uts-plugin.md @@ -688,7 +688,9 @@ export function postUserInfo(user:UTSJSONObject){ } ``` -需要注意的是,如果声明为any, vue环境中的Object 在UTS环境中也会被 UTSJSONObjct. 也就是说上面的代码同样可以写作 +需要注意的是,在声明为`any`类型的前提下, `uni-app` 环境中的 `Object` 在UTS环境中也会被转换为 `UTSJSONObjct`. + +也就是说上面的代码同样可以写作 ```ts // UTSJSONObjct 数据类型示例-2 -- GitLab