返回给定字符串的UTF-16代码单元的列表。
codeUnits - 语法
String.codeUnits
codeUnits - 示例
void main() { String str="Hello"; print(str.codeUnits); }
它将产生以下输出-
[72, 101, 108, 108, 111]
参考链接
https://www.learnfk.com/dart-programming/dart-programming-string-property-codeunits.html
标签:String,programming,无涯,codeUnits,dart,108,str,Dart From: https://blog.51cto.com/u_14033984/8386590