let n:number = arr[i] as number arr是字符串数组,这样转换在编译到手机app上会报错 java.lang.String cannot be cast to java.lang.Number
1 个回复
hws007 - 我就是我!
let n= arr[i] as string;
let d = parseInt(n);