From 1099b87af4d9eb27b3ebec1c816522576a70e4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Tue, 27 Feb 2024 12:29:22 +0800 Subject: [PATCH] Update operator.md --- docs/uts/operator.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/uts/operator.md b/docs/uts/operator.md index bceecf0c..d95feebb 100644 --- a/docs/uts/operator.md +++ b/docs/uts/operator.md @@ -391,11 +391,12 @@ a as string | null // 正常 | number | "number" | | string | "string" | | function | "function" | -| 平台专有数字类型: Int, Float, Double, Long ... | "Int","Float","Double","Long" ... | +| 平台专有数字类型: Int, Float, Double, Long ... | "Int","Float","Double","Long" ... | +| 平台专有字符串类型: Char ... | "Char" ... | | 其他任何对象(包含但不限于:Date, Array, Map, UTSJSONObject) | "object" | > 特别说明: -> HBuilderX3.9.0统一为以上规范,在HBuilderX3.9.0之前版本平台专有数字类型变量使用typeof操作符获取的值为"number" +> 平台专有字符串类型: Char 需要HBuilderX 4.0.2 及之后版本支持 为了与web保持一致,typeof除了布尔、数字、字符串、函数外,全部返回object。如需判断object范围内的具体类型,需另见[instanceof](#instanceof) -- GitLab