README.md
1# util Tool Function – Type Check
2
3## Introduction
4
5This sample shows how to check whether a specified value complies with **Type** and output the check result.
6
7### Usage
8
91. Touch **Display preset value** to display the preset value.
10
112. Touch **Check preset value** to check the preset value and output the check result.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16
README_zh.md
1# 内置对象类型检查
2
3### 简介
4
5本示例通过对给定值进行校验,判断是否符合Type类型,并输出校验结果。效果图如下:
6
7
8### 相关概念
9
10Util工具函数:该模块主要提供常用的工具函数,实现字符串编解码(TextEncoder,TextDecoder)、有理数运算(RationalNumber)、缓冲区管理(LruBuffer)、范围判断(Scope)、Base64编解码(Base64)、内置对象类型检查(Types)等功能。
11
12### 相关权限
13
14不涉及。
15
16### 使用说明
17
181.点击**显示预置值**按钮,将会显示预置值。
19
202.点击**校验预置值**按钮,将会对预置值进行校验,并输出校验结果。
21
22### 约束与限制
23
241.本示例仅支持在标准系统上运行。
25
262.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。