给定一个字符串,我们可以通过下面的方式将字符串转为字节数组: String foo = 'Hello world'; //字符串转utf8 List<int> bytes = utf8.encode(foo); ...
確定! 回上一頁