diff --git a/docs/uts/operator.md b/docs/uts/operator.md index bceecf0ca422fd0792b6bcef30203c022282c971..d95feebbf9c32fb6dd4e2a3b54d15b8547d1203e 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)