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

数组转换示例 语法纠正

上级 757bcf5f
...@@ -508,27 +508,27 @@ export class User { ...@@ -508,27 +508,27 @@ export class User {
export function arrayConvert():boolean{ export function arrayConvert():boolean{
let b1 = byteArrayOf(-1,2,0,3,4,5) let b1 = byteArrayOf(-1,2,0,3,4,5)
let c1 = UTSArray.fromNative(b1) let c1 = Array.fromNative(b1)
if(!(c1 instanceof UTSArray<Number>)){ if(!(c1 instanceof UTSArray<Number>)){
return false return false
} }
let b2 = longArrayOf(-1,2,0,3,4,5) let b2 = longArrayOf(-1,2,0,3,4,5)
let c2 = UTSArray.fromNative(b2) let c2 = Array.fromNative(b2)
if(!(c2 instanceof UTSArray<Number>)){ if(!(c2 instanceof UTSArray<Number>)){
return false return false
} }
let b3 = shortArrayOf(-1,2,0,3,4,5) let b3 = shortArrayOf(-1,2,0,3,4,5)
let c3 = UTSArray.fromNative(b3) let c3 = Array.fromNative(b3)
if(!(c3 instanceof UTSArray<Number>)){ if(!(c3 instanceof UTSArray<Number>)){
return false return false
} }
let b4 = intArrayOf(-1,2,0,3,4,5) let b4 = intArrayOf(-1,2,0,3,4,5)
let c4 = UTSArray.fromNative(b4) let c4 = Array.fromNative(b4)
if(!(c4 instanceof UTSArray<Number>)){ if(!(c4 instanceof UTSArray<Number>)){
return false return false
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册