提交 c646ab83 编写于 作者: 杜庆泉's avatar 杜庆泉

Update data-type.md

上级 36bd0186
...@@ -754,6 +754,13 @@ let kotlinList = utsArr.toKotlinList() ...@@ -754,6 +754,13 @@ let kotlinList = utsArr.toKotlinList()
// Array 转换 kotlin.Array // Array 转换 kotlin.Array
let kotlinArray = utsArr.toTypedArray() let kotlinArray = utsArr.toTypedArray()
// 部分java编写的api 要求 FloatArray / IntArray,可以通过下面的方法进行转换
let a:Int[] = [1,2,3,4]
let b = a.toKotlinList().toIntArray()
console.log("b",b[2])
``` ```
#### iOS 平台专有数组类型 #### iOS 平台专有数组类型
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册