目录

Length

返回字符串的长度,包括空格,制表符和换行符。

语法 (Syntax)

String.length

例子 (Example)

void main() { 
   String str = "Hello All"; 
   print("The length of the string is: ${str.length}"); 
} 

它将产生以下output - 。

The length of the string is: 9
↑回到顶部↑
WIKI教程 @2018