目录

toLowerCase()

通过将给定字符串中的所有字符转换为小写字母来返回新字符串。

语法 (Syntax)

String.toLowerCase()

返回值 (Return Type)

返回一个字符串。

例子 (Example)

void main() { 
   String uStr = "ABC"; 
   String lStr = "hello"; 
   print(uStr.toLowerCase()); 
   print(lStr.toLowerCase()); 
}

它将产生以下output - 。

abc 
hello
↑回到顶部↑
WIKI教程 @2018