目录

codeUnits

返回给定字符串的UTF-16代码单元列表。

语法 (Syntax)

String.codeUnits

例子 (Example)

void main() { 
   String str = "Hello"; 
   print(str.codeUnits); 
} 

它将产生以下output - 。

[72, 101, 108, 108, 111] 
↑回到顶部↑
WIKI教程 @2018