提交 2a5e2fb0 编写于 作者: Q qiang

docs: 介绍部分内置类型转换

上级 66262665
......@@ -666,3 +666,7 @@ const shallowCopy = fruits.slice() // this is how to make a copy
```ts
console.log(arr.0) // a syntax error
```
## Bug & Tips@tips
* 目前 Array 类型编译到 kotlin 为 io.dcloud.uts.UTSArray
......@@ -26,5 +26,6 @@ let otherError = new Error("Connecting to database failed.", { cause: err });
```
## Bug & Tips@tips
* 目前 Error 类型编译到 kotlin 为 io.dcloud.uts.UTSError
......@@ -214,3 +214,7 @@ Promise 对象表示异步操作最终的完成(或失败)以及其结果值
<!-- UTSJSON.Promise.allSettled.returnValue -->
<!-- UTSJSON.Promise.allSettled.compatibility -->
## Bug & Tips@tips
* 目前 Promise 类型编译到 kotlin 为 io.dcloud.uts.UTSPromise
......@@ -155,4 +155,8 @@ console.log(globalRegex.lastIndex);
console.log(globalRegex.test(str));
// expected output: false
```
<!-- UTSJSON.RegExp.test.compatibility -->
\ No newline at end of file
<!-- UTSJSON.RegExp.test.compatibility -->
## Bug & Tips@tips
* 目前 RegExp 类型编译到 kotlin 为 io.dcloud.uts.UTSRegExp
\ No newline at end of file
......@@ -123,4 +123,8 @@ console.log(set1.has(5));
console.log(set1.has(6));
// expected output: false
```
<!-- UTSJSON.Set.has.compatibility -->
\ No newline at end of file
<!-- UTSJSON.Set.has.compatibility -->
## Bug & Tips@tips
* 目前 Set 类型编译到 kotlin 为 io.dcloud.uts.UTSSet
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册