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

Update data-type.md

上级 50b3ea0c
......@@ -677,6 +677,7 @@ array1.forEach((element:string, index:number) => {
* kotlin.collections.List
* kotlin.Array
* kotlin.IntArray
* kotlin.FloatArray
* kotlin.ByteArray
* kotlin.LongArray
* ...
......@@ -763,6 +764,13 @@ console.log("b",b[2])
let a = [[2].toKotlinList().toIntArray(),[23].toKotlinList().toIntArray(),[22].toKotlinList().toIntArray()]
let b = a.toKotlinList().toTypedArray()
// Array<Number> 转 java float[]的示例
let a = new Array<Number>(10)
let b = a.toKotlinList().map(function(it):Float{
return it.toFloat()
})
```
#### iOS 平台专有数组类型
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册